main()
{
char *ptr = "Ramco Systems";
(*ptr)++;
printf("%s\n",ptr);
ptr++;
printf("%s\n",ptr);
}
Find the Outputs?
Answer Posted / sumeet
Samco Systems
amco Systems
this will be the answer .. the reason being the ascii value
of r will be incremented so it now point to s( capital s
that is ) this account for (*ptr)++
next ptr++ will simply move you to the next charachter ..
| Is This Answer Correct ? | 20 Yes | 7 No |
Post New Answer View All Answers
List the difference between a 'copy constructor' and a 'assignment operator' in C?
Explain what is the best way to comment out a section of code that contains comments?
What are multidimensional arrays?
Differentiate between ordinary variable and pointer in c.
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is the -> in c?
What are global variables and how do you declare them?
Write a program to reverse a given number in c?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
what is bit rate & baud rate? plz give wave forms
how to write optimum code to divide a 50 digit number with a 25 digit number??
How can I get random integers in a certain range?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
Why is c so powerful?