What is the difference between Char a[ ]=”string” and char
*a=”String”
Answer Posted / vikram
char a[]="string" refers that string has constant length and it will reserve fixed memory while in case of char *a="string" the string has variable length
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can a class be static in c++?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What is const pointer and const reference?
What do you mean by overhead in c++?
Discussion on error handling of C++ .
How do you save a c++ program?
What is wrapper class in c++?
Explain linear search.
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
What is the output of the following program? Why?
What is implicit conversion/coercion in c++?
Explain one-definition rule (odr).
What is string in c++ programming?
What are the advantages of pointers?
Explain virtual class and friend class.