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
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
How to declaring variables in c++?
Describe about storage allocation and scope of global, extern, static, local and register variables?
What is the use of default constructor?
Explain register storage specifier.
What are the two types of comments?
Which is the best c++ software?
Can a list of string be stored within a two dimensional array?
What is stoi in c++?
What is setbase c++?
What is #include cmath?
In c++, what is the difference between method overloading and method overriding?
Explain what are accessor methods?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
Is linux written in c or c++?