What is the difference between char a[] = "string"; and
char *p = "string"; ?

Answer Posted / abc

we cannot assign a string to another but we can assign a
char pointer to another char pointer.

Is This Answer Correct ?    23 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i have a written test for microland please give me test pattern

2459


How can I read a binary data file properly?

824


How do I use void main?

828


When can you use a pointer with a function?

740


i got 75% in all semester am i eligible for your company

1935


How can I delete a file?

811


how could explain about job profile

1637


What is %d used for?

767


Can you return null in c?

844


Is file a keyword in c?

676


code for replace tabs with equivalent number of blanks

1886


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

849


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

5139


How do you search data in a data file using random access method?

1074


How do you use a 'Local Block'?

910