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
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What do you mean by dynamic memory allocation in c?
What is the sizeof () operator?
Why clrscr is used in c?
What are data structures in c and how to use them?
What are the functions to open and close the file in c language?
Explain the use of function toupper() with and example code?
What is function what are the types of function?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
how can f be used for both float and double arguments in printf? Are not they different types?
Explain the difference between getch() and getche() in c?
What is class and object in c?
Explain the difference between ++u and u++?
State the difference between realloc and free.
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }