What is the difference between Char a[ ]=”string” and char
*a=”String”
Answer Posted / niranjan kumar niraj
char a[]="string" returns characters and char *a[]="String"
returns address of character
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
Which one is a preferred language C or C++? Why?
Out of fgets() and gets() which function is safe to use and why?
How do you clear a map in c++?
What are the advantages of using a pointer?
What is c++ stringstream?
When does a 'this' pointer get created?
What is ofstream c++?
What is &x in c++?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
Explain this pointer?
What is the size of a vector?
what are the iterator and generic algorithms.
What is a breakpoint?
When do we run a shell in the unix system? How will you tell which shell you are running?
What is the C-style character string?