Functioning With Functions - Online Test

Test Difficulty Level: Medium

Syllabus of Test

Knowledge about functions.

Sample Question from this online test:

Question: main()
{
int i=3, j;
j=add(++i++);
printf("i=%dj=%d\n", i, j);
}
add(ii)
int ii;
{
ii++;
printf("ii=%d\n", ii);
}

Option A: 4 5 6

Option B: 3 5 6

Option C: No Output

Option D: Error Message

To answer, click the "Start This Test" button below.

Start this Test






Comments

Debalipta Swain on 2012-04-06 12:44:08 wrote,

all the question's there is no return type mention in called functions.and we know the variable which is declared within the parameter.all are local variable.but here all the variable which is passed that variables again redeclared .can u say why? plz modify your question otherwise student will confused