You are not logged in.

#1 2015-04-18 05:18:11

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

Compiler Error

Directions:

#include
#define max 5
void main(){
    int i = 0;
    i = max++;
    printf("%d", i++);
}

Question:
What will be output if you will compile and execute the following c code?

Option A):
Compiler Error
Option B):
7
Option C):
6
Option D):
5

Correct Answer is Option A):
Compiler Error


Failure is the first step towards seccess.

2015-04-18 05:18:11

Advertisement
Ads By Google

Re: Compiler Error



\n

Board footer