What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / praveenkumar managuli
char s[]; this allocate memory equal tosize of string
and char *s; holds the address of first charecter
| Is This Answer Correct ? | 23 Yes | 4 No |
Post New Answer View All Answers
What is d'n in c?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What are qualifiers in c?
What are the types of pointers in c?
Why ca not I do something like this?
What is memcpy() function?
Why is #define used?
Write a program to print factorial of given number using recursion?
What are dangling pointers in c?
How do c compilers work?
Explain what is the stack?
Difference between exit() and _exit() function?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
How do I round numbers?
Is it possible to initialize a variable at the time it was declared?