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


Please Help Members By Posting Answers For Below Questions

What is enum c++?

904


Explain container class.

974


What is a tuple c++?

770


What is the limitation of cin while taking input for character array?

1753


How to declare a pointer to an array of integers?

858


Differentiate between realloc() and free().

804


What does ios :: app do in c++?

809


What is anonymous object in c++?

868


What is the use of endl?

763


What is the difference between prefix and postfix versions of operator++()?

848


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

873


Is linux written in c or c++?

810


What is iomanip c++?

831


What can c++ be used for?

842


What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number

1039