C free online test



TEST YOUR C SKILLS


C programming language free online testing objective types questions answers with explanation for interview or written test.



8 comments:

  1. syntactical que bt repeated thinkg require

    ReplyDelete
  2. Explanation needed:-

    #include
    #include
    void quiz(int w); main() { int x= 5; clrscr(); quiz(5); } void quiz(int w) { if(w>1) { quiz(w/2); quiz(w/2); } printf("*"); }

    ReplyDelete
    Replies
    1. It Will only a print a star because in if condition you haven't written anything so only print one star on terminal

      Delete
    2. This comment has been removed by the author.

      Delete
  3. pointers,functions and strings are my favorite chapters in c programming and i can really defend these in 100%. i love c programming

    ReplyDelete
  4. Mokka subject.

    ReplyDelete
  5. 7 stars printed because
    ist call
    stack[5] return stmt 1st quiz...............(1)
    2nd call
    stack[5,2] return stmt 1st quiz................(2)
    now w=1 <1 print *
    return to (2) pop top element
    now call by 2nd quiz stack[5,,2] return stmt 2nd quiz;...............(3)
    w=1<1 print *
    return to (3)pop top element
    print * and return to (1)pop top element
    stack [5,,,5] call by 2nd quiz...........................(4)
    stack[5,,,5,2] call by 2nd quiz ........................(5)
    now w=1<1 print *
    return goto 5 print *;stack[5,,,5]pop top element
    return goto 4 print *;stack[5,,,,]pop top element
    now print final print one more * due to the 1st call;stack [];pop top element

    ReplyDelete
  6. can u provide some questions on bit programming

    ReplyDelete