What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / parmjeet kumar
char a[] will alocate the momery size of " string" word in
other hand char *p will alocate the memory size of one
character... or we can not move the data from one location
to another location but with pointer we can do it...
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
what are the facialities provided by you after the selection of the student.
How do you convert strings to numbers in C?
What is the use of extern in c?
Tell me about low level programming languages.
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
what are the 10 different models of writing an addition program in C language?
Is array name a pointer?
Explain the difference between strcpy() and memcpy() function?
Why can arithmetic operations not be performed on void pointers?
What is a protocol in c?
please send me the code for multiplying sparse matrix using c
What is new line escape sequence?
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
The __________ attribute is used to announce variables based on definitions of columns in a table?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }