-- advertisement --

C Introduction

  1. What is the first stage of compilation of a C program?
    1. linking
    2. assembling
    3. preprocessing
    4. compiling
  1. View Hint | View Answer | Workspace | Discuss In Forum | Report

    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

    Report

  1. What is a standard library function to read 1 char at a time?
    1. putchar()
    2. printf()
    3. getchar()
    4. write()
  1. View Hint | View Answer | Workspace | Discuss In Forum | Report

    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()

    Report

-- advertisement --


  1. What is the value of character constant 'Á'om ASCII character set?
    1. 1
    2. 65
    3. 101
    4. 20
  1. View Hint | View Answer | Workspace | Discuss In Forum | Report

    Internal representation of alphanumeric character Á

    Correct Option: B

    ASCII value of A is 65

    Report

-- advertisement --