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 i use “int” data type to store the value 32768? Why?
What is the difference between malloc calloc and realloc in c?
What does c mean in basketball?
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.
Explain 'bit masking'?
Explain how do you declare an array that will hold more than 64kb of data?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
define string ?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
How will you divide two numbers in a MACRO?
explain what is fifo?
In C, What is the #line used for?
Where does the name "C" come from, anyway?
What is return type in c?
Describe explain how arrays can be passed to a user defined function