Hi all... I just need help with a few short questions. I am still very new to C++. I am doing some excercises (which I don't have the answers to) in order to get ready for exams... Some of them I've tried but it's confusing me. Please help to understand this Q's!
This is about char:
1) Consider the following c-string definitionchar name;Why is the following assignment statement not valid?name = "Johnny";
4) What is the maximum string length that can be stored in number?char number = "thirteen";
5) What is meant byvector<int> number(4);
6) Consider the following
1 2 3 4
int * px;
int * py;
int x = 10;
int y = 20;
Give an example of a Dynamic variable.I know answer is int *m = newint;But what will the answer be if they ask for a 6.1) dynamic array, 6.2)
a static array, 6.3) static variable and 6.4) what is the difference between
a dynamic array and a static array?
If you guys can only help me with this few questions, it would be very much appreciated!
It seems we are writing the same paper tomorrow. You need to attempt these questions and rather get confirmation or direction within this forum. Posting the question without any attempt will not help you pass.
But looks like you also have a few questions... AND I did all the questions, just don't know if it's correct... so I've tried it but if nobody helps me with some answers, how will I know if it's correct????