Home / C Programming / Pointers :: Discussion

Discussion :: Pointers

  1. Point out the error in the program

    #include 
    
     intmain() 
     {   
        int a[] = {10, 20, 30, 40, 50};               
        int j;    
        for(j=0; j5; j++)    
        {      
           printf("%d\n", a);    
           a++;   
        }    
       return 0; 
    } 
    

     

  2. A.

    Error: Declaration syntax

    B.

    Error: Expression syntax

    C.

    Error: LValue required

    D.

    Error: Rvalue required

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment