[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: String - Discussion

Home > C Programming > String > MCQs Questions Discussion

2 / 26

What is the output of the following problem ?

#include<stdio.h>
int main()
{
char *str = "12345";
printf("%c %c %c\n", *str, *(str++),  *(str++));
return 0;
}

A3 2 1

B1 2 3

C3 4 5

DCompilation Error

ENone of these

Answer: Option (Login/Signup)

Show Explanation

So output is 321.

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +1 -0 +
    Report


Report Error

Please Login First Click Here