[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

5 / 26

What is the output of the following problem ?

#include<stdio.h>
void  main() 
{
char a[]="12345\0";
int i=strlen(a);
printf("Value of i %d\n",++i);
}

AValue of i 6

BValue of i 5

CValue of i 7

DCompilation Error

ENone of these

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +1 -0 +
    Report


Report Error

Please Login First Click Here