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
What is the difference between far and near ?
What does the error message "DGROUP exceeds 64K" mean?
Why is c not oop?
What is the difference between c &c++?
What is n in c?
What are formal parameters?
What's the best way of making my program efficient?
Where is volatile variable stored?
How to find a missed value, if you want to store 100 values in a 99 sized array?
What is the difference between the = symbol and == symbol?
What is a ternary operator in c?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What is nested structure with example?
Can a variable be both static and volatile in c?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?