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 are the uses of a pointer?
What is const and volatile in c?
What is a pointer in c?
What is the difference between %d and %i?
Hai what is the different types of versions and their differences
Do character constants represent numerical values?
What are loops c?
Write a program to know whether the input number is an armstrong number.
What is the process to generate random numbers in c programming language?
How can I get the current date or time of day in a c program?
What is omp_num_threads?
Do array subscripts always start with zero?
What does != Mean in c?
What is the advantage of c?
How do you define CONSTANT in C?