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
Is map sorted c++?
What are 2 ways of exporting a function from a dll?
Is it possible to write a c++ template to check for a function's existence?
What do you mean by a template?
What does floor mean in c++?
What is the use of endl in c++?
Is c++ a difficult language?
What is polymorphism and its type in c++?
What are pointer-to-members in C++? Give their syntax.
Differentiate between a template class and class template in c++?
Can we use clrscr in c++?
How a pointer differs from a reference?
What do you mean by volatile and mutable keywords used in c++?
What is meant by a delegate?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?