218 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

226
views
0 answers
0 votes
sherlock_john asked Oct 13, 2018
226 views
Which model reduces the cost of development of a software?A) waterfallB) PrototypingC) IterativeD) Non - iterative Correct ans is A, How?
144
views
0 answers
0 votes
sherlock_john asked Oct 13, 2018
144 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 from Fd) D can be dropped from F Answer is A, How?
256
views
0 answers
0 votes
sherlock_john asked Oct 13, 2018
256 views
In C++ and java which of the following features is not essential for polymorphic behaviour of programs?A) InheritanceB) Method overridingC) Method overloadingD) ... key , Option C is correct, but How? Isn't Method overloading a
9.2k
views
1 answers
2 votes
SamruddhiM asked Jun 13, 2017
9,176 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?