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 c preprocessor mean?
How was c created?
Explain can static variables be declared in a header file?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
Explain main function in c?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
What is the right type to use for boolean values in c?
Is multithreading possible in c?
Which is better malloc or calloc?
In a switch statement, what will happen if a break statement is omitted?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is data type long in c?
What are reserved words with a programming language?
How will you delete a node in DLL?
Differentiate between declaring a variable and defining a variable?