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
Where define directive used?
i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me
Can we compile a program without main() function?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What are loops in c?
What is the symbol indicated the c-preprocessor?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
What is file in c language?
What does. int *x[](); means ?
Why n++ execute faster than n+1 ?
What are the similarities between c and c++?
Explain main function in c?
what is the syallabus of computer science students in group- 1?
What is a union?
I have a varargs function which accepts a float parameter?