what is the difference between
const char *p, char const *p, const char* const p
Answer Posted / singamsa
const char*p - p is pointer to the constant character i.e
value in that address location is constact
char const *p - same as above
const char* const p - p is the constant pointer which
points to the constant string, both value and address are
constants
| Is This Answer Correct ? | 115 Yes | 49 No |
Post New Answer View All Answers
How can I invoke another program or command and trap its output?
State the difference between x3 and x[3].
What is the difference between int main and void main in c?
What is a spanning Tree?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What is a header file?
#include
what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555
Why c language?
What is calloc in c?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
Explain how can I prevent another program from modifying part of a file that I am modifying?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
Describe wild pointers in c?
What is dynamic variable in c?