203 views
0 votes
0 votes
int main()
{
    

    int a[5] = {5,1,2,3}, *p=a, *q=a+3, i;

    *p* = *p;

    *q%=*(a+2);
    
    for(i=0;i<1;1++)

        printf("\n%d%d", p[i], q[-i]);

    return 0;
}
 

Specify the output of the program

A) 25 1

B) 25 0

C) 25 2

D) Syntax error

 

According to the answer key, ans is A, but isn;t it syntax error?

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
sherlock_john asked Oct 13, 2018
214 views
Which model reduces the cost of development of a software?A) waterfallB) PrototypingC) IterativeD) Non - iterative Correct ans is A, How?
0 votes
0 votes
0 answers
2
sherlock_john asked Oct 13, 2018
127 views
Consider the functional dependency set:F= ABC - D, B - E, E - AIdentify the correct statementa) A can be dropped from F.b) B can be dropped from F.c) C can be dropped fro...
2 votes
2 votes
1 answer
4
SamruddhiM asked Jun 13, 2017
8,998 views
Is there any source that I can refer to for the PGCET (Non-Gate) exam papers with answers/solutions held by Gujarat for admissions in ME or MTech?