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
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);
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Can we initialize extern variable in c?
What is realloc in c?
Is sizeof a keyword in c?
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?
What is structure data type in c?
What is union and structure?
Can a file other than a .h file be included with #include?
Why is c so important?
What is the difference between pure virtual function and virtual function?
Can a void pointer point to a function?
What should malloc() do?
What is the explanation for prototype function in c?
How do you override a defined macro?