You are not logged in.

#1 2015-09-16 04:23:04

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

C Language Fundamentals Executed:

C Programming Quizzes C Language Fundamentals

Directions:
What number would be shown on the screen after the following statements of C are executed?

Question:
char ch;
int i;
ch = 'G';
i = ch-'A';
printf("%d", i);

Option A):
6
Option B):
5
Option C):
2
Option D):
4

Correct Answer is Option A):
6


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

2015-09-16 04:23:04

Advertisement
Ads By Google

Re: C Language Fundamentals Executed:



\n

Board footer