What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / srinivas
a is a const pointer, whereas p is not
meaning 'a' will point to a fixed location (value of 'a' or
address of *a can't change, remains fixed) - though
contents of a can be changed (by way of accessing a[i])
| Is This Answer Correct ? | 36 Yes | 6 No |
Post New Answer View All Answers
will u please send me the placement papers to my mail???????????????????
Write a function that will take in a phone number and output all possible alphabetical combinations
Why do we use namespace feature?
shorting algorithmS
Why is %d used in c?
How many keywords are there in c?
How can type-insensitive macros be created?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is #include stdio h?
What is the difference between procedural and declarative language?
Explain how can I avoid the abort, retry, fail messages?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What is the meaning of ?
What are the different categories of functions in c?
What is the difference between class and object in c?