You are not logged in.

#1 2015-09-15 04:11:25

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

Program Execution:

C Programming Quizzes C Language Control Structures

Directions:
What will be the value of i and j after execution of following program?

Question:
#include<stdio.h>
void main()
{
    int i, j;
    for(i=0,j=0;i<10,j<20;i++,j++){
        printf("i=%d %t j=%d", i, j);
       }
}

Option A):
19 19
Option B):
10 10
Option C):
10 20
Option D):
20 20

Correct Answer is Option A):
19 19


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

2015-09-15 04:11:25

Advertisement
Ads By Google

Re: Program Execution:



Board footer