You are not logged in.

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

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

Program Execution:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … 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


Failure is the first step towards seccess.

2015-09-15 04:11:28

Advertisement
Ads By Google

Re: Program Execution:



Board footer