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


Please Help Members By Posting Answers For Below Questions

What is the difference between far and near ?

682


What does the error message "DGROUP exceeds 64K" mean?

725


Why is c not oop?

535


What is the difference between c &c++?

645


What is n in c?

573






What are formal parameters?

656


What's the best way of making my program efficient?

624


Where is volatile variable stored?

644


How to find a missed value, if you want to store 100 values in a 99 sized array?

816


What is the difference between the = symbol and == symbol?

623


What is a ternary operator in c?

652


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

656


What is nested structure with example?

622


Can a variable be both static and volatile in c?

606


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

935