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

why we wont use '&' sing in aceesing the string using scanf

2062


What is an identifier?

807


What is a good way to implement complex numbers in c?

786


c program to compute AREA under integral

2072


How do you declare a variable that will hold string values?

915


What is substring in c?

856


write a c program for swapping two strings using pointer

2311


what do the 'c' and 'v' in argc and argv stand for?

863


What is build process in c?

863


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1680


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

848


what are # pragma staments?

1808


What are structure types in C?

860


What is #include stdio h?

898


What is size of union in c?

752