main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
}
Find the Outputs?

Answer Posted / soundar

Address of the variable will be displayed for the first
printf stmt

previous address will be incremented and current address of
variable will displayed for second printf stmt

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will the code below print when it is executed?   int x = 3, y = 4;         if (x = 4)                 y = 5;         else                 y = 2;         printf ("x=%d, y=%d ",x,y);

1345


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

15043


Can we initialize extern variable in c?

626


What is realloc in c?

578


Is sizeof a keyword in c?

574






Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2051


What is structure data type in c?

562


What is union and structure?

567


Can a file other than a .h file be included with #include?

679


Why is c so important?

590


What is the difference between pure virtual function and virtual function?

643


Can a void pointer point to a function?

565


What should malloc() do?

639


What is the explanation for prototype function in c?

562


How do you override a defined macro?

693