main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
}
Find the Outputs?
Answer Posted / madhu
segmentation fault.U can give that as *(ptr+1)
| Is This Answer Correct ? | 8 Yes | 6 No |
Post New Answer View All Answers
How many levels of pointers have?
What is the c language function prototype?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
Why is sizeof () an operator and not a function?
what are bit fields in c?
What does it mean when the linker says that _end is undefined?
When do we get logical errors?
Which driver is a pure java driver
What are c header files?
What is function definition in c?
Write a program for Overriding.
When is a void pointer used?
What is the scope of static variable in c?
which type of aspect you want from the student.
Can we change the value of static variable in c?