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 does selection sort work in c?
Is fortran still used in 2018?
Can we declare variable anywhere in c?
What is the main difference between calloc () and malloc ()?
What is function pointer c?
Can we access array using pointer in c language?
Write a program to swap two numbers without using a temporary variable?
What is a stream?
Where local variables are stored in c?
What is the purpose of clrscr () printf () and getch ()?
What are the advantages of c language?
What do you mean by invalid pointer arithmetic?
What is meant by keywords in c?
Can we add pointers together?
What is a 'null pointer assignment' error?