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
What is the difference between the indirection operator and the address of oper-ator?
What are the classes in c++?
What is c++ namespace?
What is bubble sort c++?
What is the role of C++ shorthand's?
Can a program run without main in c++?
Why main function is special in c++?
What is math h in c++?
Who invented turbo c++?
What is vector processing?
Explain the pure virtual functions?
What is pointer -to-members in C++? Give their syntax?
describe private access specifiers?
Why can templates only be implemented in the header file?
What do you mean by funtion prototype?