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
Can a void pointer point to a function?
What is keyword in c?
What is memory leak in c?
What is nested structure with example?
Implement bit Array in C.
What are the main characteristics of c language describe the structure of ac program?
What happens if a header file is included twice?
How do I convert a string to all upper or lower case?
diff between exptected result and requirement?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
Combinations of fibanocci prime series
When should we use pointers in a c program?
What is the description for syntax errors?
how to find anagram without using string functions using only loops in c programming
How can I delete a file?