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
How can I write a function analogous to scanf?
What is a lookup table in c?
What are local static variables? How can you use them?
What is the use of a static variable in c?
What is void c?
What is multidimensional arrays
What is the role of this pointer?
How can I generate floating-point random numbers?
What is a pragma?
how to capitalise first letter of each word in a given string?
How can I sort a linked list?
How do you determine the length of a string value that was stored in a variable?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
Can we declare a function inside a function in c?
Why do we use static in c?