You are not logged in.

#1 2015-09-17 04:26:59

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()
{
      register i=5;
      char j[]= "hello";
      printf("%s %d", j, i);
}

Option A):
None
Option B):
hello garbage value
Option C):
hello 5
Option D):
Error

Correct Answer is Option C):
hello 5


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

2015-09-17 04:26:59

Advertisement
Ads By Google

Re: C Language Basic Quiz Question.



Board footer