You are not logged in.

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

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
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


Failure is the first step towards seccess.

2015-09-16 04:23:07

Advertisement
Ads By Google

Re: C Language Fundamentals Executed:



\n

Board footer