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
can we implement multi-threads in c.
What is fflush() function?
Where are the auto variables stored?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What is identifier in c?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
When was c language developed?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What is a node in c?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
How can a string be converted to a number?
Is main an identifier in c?
Explain how does flowchart help in writing a program?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?