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


Please Help Members By Posting Answers For Below Questions

What do you understand by normalization of pointers?

621


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1249


how to find binary of number?

3423


What is memcpy() function?

620


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

917






Is main is a keyword in c?

605


What is indirection in c?

620


What is the difference between exit() and _exit() function in c?

579


How can this be legal c?

648


What are the applications of c language?

622


typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none

713


Do you know the difference between exit() and _exit() function in c?

607


Describe the difference between = and == symbols in c programming?

775


What are valid signatures for the Main function?

699


In which language linux is written?

600