C Programming - Pointers - Discussion

Discussion Forum : Pointers - Point Out Errors (Q.No. 2)
2.
Point out the error in the program
#include<stdio.h>

int main()
{
    int a[] = {10, 20, 30, 40, 50};
    int j;
    for(j=0; j<5; j++)
    {
        printf("%d\n", a);
        a++;
    }
    return 0;
}
Error: Declaration syntax
Error: Expression syntax
Error: LValue required
Error: Rvalue required
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
65 comments Page 7 of 7.

RKV Gopi said:   1 decade ago
yes I agree with Neha..

Sriram said:   9 years ago
Well explained @Shri.

Sachin said:   1 decade ago
This is the nice one.

Gouri said:   1 decade ago
L value means what?

Mohanraj r said:   8 years ago
Explain it please.


Post your comments here:

Your comments will be displayed after verification.