Home / C Programming / C Fundamentals :: C Fundamentals

C Programming :: C Fundamentals

  1. "My salary was increased by 15%" Select the statement, which will EXACTLY reproduce the line of text above.

  2. A.

     printf("My salary was increased by 15/%!");

    B.

     printf("My salary was increased by 15%!");

    C.

     printf("My salary was increased by 15'%'!");

    D.

     printf("My salary was increased by 15%%!");

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. short testarray[4][3] = { {1}, {2,3}, {4,5,6}};

    printf("%d", sizeof(testarray));

    Assuming a short is two bytes long, what will be printed by the above code?

  4. A.

     6

    B.

     7

    C.

     12

    D.

     24

    E.

     It will not compile because not enough initializers are given

    View Answer

    Workspace

    Discuss Discuss in Forum