What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / man
a[] = "string"; is constant pointer to constant string
char *p = "string"; is pointer to constant string
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What is meant by preprocessor in c?
What should malloc() do?
Can a void pointer point to a function?
What are nested functions in c?
What is nested structure?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.
program to convert a integer to string in c language'
What is void main ()?
Explain about C function prototype?
Why c is faster than c++?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
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.
Why do we use return in c?