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

Can i use “int” data type to store the value 32768? Why?

742


What is the difference between malloc calloc and realloc in c?

634


What does c mean in basketball?

550


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1609


Explain 'bit masking'?

638






Explain how do you declare an array that will hold more than 64kb of data?

875


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15025


define string ?

658


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

1772


How will you divide two numbers in a MACRO?

688


explain what is fifo?

623


In C, What is the #line used for?

1030


Where does the name "C" come from, anyway?

627


What is return type in c?

627


Describe explain how arrays can be passed to a user defined function

592