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
Which programming language is best for getting job 2020?
How does placing some code lines between the comment symbol help in debugging the code?
When can you use a pointer with a function?
What is the easiest sorting method to use?
Explain bitwise shift operators?
How can I read and write comma-delimited text?
What does it mean when a pointer is used in an if statement?
Can you pass an entire structure to functions?
Write a program to swap two numbers without using third variable in c?
Explain what are reserved words?
What is the purpose of sprintf?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
What is meant by 'bit masking'?
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
Write a program to check palindrome number in c programming?