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 

14 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
    Replies
    1. the op is error becoz u didnt mention " " in printf
      we should write the condition like this
      printf("%d",x>y?x:y);

      Delete
  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
    Replies
    1. u declare that x=10 after u cheak the condition with if. the condition is false the it executes else statement
      output is false

      Delete
  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
  7. Hi any one can tel me how to download these files?

    ReplyDelete
  8. just click the pop out option on top of this file and download from google drive. hope this helps.

    ReplyDelete