You are not logged in.

#1 2015-09-17 05:56:46

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Language Basic Quiz Question.

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … uage-Basic

Directions:
Determine Output:

Question:
#include<stdio.h>
void main()
{
      char s[]={'a','b','c','n','c','\0'};
      char *p, *str, *str1;
      p=&s[3];
      str=p;
      str1=s;
      printf("%c", ++*p + ++*str1-32);
}

Option A):
P
Option B):
M
Option C):
N
Option D):
None

Correct Answer is Option B):
M


Failure is the first step towards seccess.

2015-09-17 05:56:46

Advertisement
Ads By Google

Re: C Language Basic Quiz Question.



Board footer