c test questions and answers pdf


Online written test questions and answers in c programming language in pdf form free to download



This PDF doc keeps  sample test questions and answers of c programming language. To free download this pdf doc go to File -> download Original 

9 comments:

  1. mayuresh/ shrimant9/14/11, 10:32 AM

    cool.........

    ReplyDelete
  2. What is the output of the following code?

    #include

    void main()

    {

    int arr[2][3][2]={{{2,4},{7,8},{3,4},}, {{2,2},{2,3},{3,4}, }};

    printf("\n%d",**(*arr+1)+2+7);

    }
    the answer is 16
    i did all possible combinations to figure it out
    but was not able to
    pz just help me out

    ReplyDelete
  3. what is the output of the following program?
    main ( )
    {
    int x=100, y=200;
    print f ( "%d,(x>y)? x:y);
    }

    ReplyDelete
  4. what is the output of the following program? explain the output.

    main( )
    {
    int x=10;
    if ( x=20) print f("TRUE");
    else print f ( "FALSE");
    }

    ReplyDelete
  5. Gilbert the answer is TRUE because the if condition is TRUE. Think out of the box :P

    ReplyDelete
  6. The below code(7 question in above test) shows "Lvalue required" error while compiling. Plz explain answer. Thanks in advance.

    #include
    int main(){
    int i;
    (i=8)+=1;
    printf("%d",i);
    return 0;
    }

    ReplyDelete