What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / dharanidhar
P is a pointer which is constant. So, the values in this
array cannot be modified.
characters within a[] can be changed by accessing
like a[1] = '2',....
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What is return in c programming?
What are the advantages and disadvantages of pointers?
write a program to display all prime numbers
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
Do you know null pointer?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Which is better pointer or array?
How can you pass an array to a function by value?
Explain why c is faster than c++?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
What is a structure member in c?
Explain what are reserved words?
What is assert and when would I use it?
Explain what are preprocessor directives?