What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / singamsa
we can not access a++ or a-- on array but we can do that in
pointers
array, address is constanct for that string, pointer is not
like that
Is This Answer Correct ? | 43 Yes | 22 No |
Post New Answer View All Answers
What is integer constants?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is the difference between variable declaration and variable definition in c?
What is the symbol indicated the c-preprocessor?
What is a pointer in c?
What header files do I need in order to define the standard library functions I use?
Why we use stdio h in c?
What is memory leak in c?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
which type of aspect you want from the student.
can we implement multi-threads in c.
Explain what is a 'locale'?
What are multidimensional arrays?
How do you print only part of a string?
Explain a pre-processor and its advantages.