You are not logged in.

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

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

C Language Basic Quiz Question.

C Programming Quizzes C Language 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


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-17 05:56:41

Advertisement
Ads By Google

Re: C Language Basic Quiz Question.



Board footer