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 #error and use of it?
Is there anything like an ifdef for typedefs?
Why do we use namespace feature?
What is volatile, register definition in C
Explain what does it mean when a pointer is used in an if statement?
What does volatile do?
What are integer variable, floating-point variable and character variable?
Is c object oriented?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
i have a written test for microland please give me test pattern
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
What is function prototype?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
application attempts to perform an operation?