C Introduction


  1. What is the first stage of compilation of a C program?









  1. View Hint View Answer Discuss in Forum

    First step of a compilation process is resolving header files inclusions and macro definitions

    Correct Option: C

    Compilation has following four stages:-
    Preprocessing
    compiling
    assembling
    linking

    Preprocessing resolves header file inclusions, macro definitions


  1. What is a standard library function to read 1 char at a time?









  1. View Hint View Answer Discuss in Forum

    standard library has several functions for reading and writing one character at a time.

    Correct Option: C

    gercha reads the next input character from a text stream and returns that as its value.
    c = getchar()



  1. What is the value of character constant 'Á'om ASCII character set?









  1. View Hint View Answer Discuss in Forum

    Internal representation of alphanumeric character Á

    Correct Option: B

    ASCII value of A is 65