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
Do you know the difference between malloc() and calloc() function?
Why is main function so important?
all c language question
what will be the output for the following main() { printf("hi" "hello"); }
Can we initialize extern variable in c?
What are register variables in c?
Add Two Numbers Without Using the Addition Operator
What is external variable in c?
What is optimization in c?
Explain what are the different file extensions involved when programming in c?
can any one tel me wt is the question pattern for NIC exam
what is the role you expect in software industry?
ATM machine and railway reservation class/object diagram
What is infinite loop?
Why is c so popular?