Take FREE!! Online Cocubes Mock Test to Crack various Companies Written Exams.
Practice List of Paytm Coding Questions !!!
Take 30+ FREE!! Online Arithmetic Aptitude Mock test to crack any Exams.

Technical Interview Questions and Answers :: C

    11 / 123

    Other than in a for statement, when is the comma operator used?

    To declare more than one same type of varibale.
    int i,j,k;
    To print variables
    eg: int i=2;

    Please Login First :

    12 / 123

    What is the difference between declaring a variable and defining a variable?

    Declaring a variable is initializing a variable where as defining a variable is defining what variables you are initialized.


    Please Login First :

    13 / 123

    What is a static variable?

    By default the value unchanged means we can give as static.
    Variable which is declared as static and no further initialisation then static variable takes value from zero.

    Please Login First :

    14 / 123

    What is a register variable?

    Register variables are a special case of automatic variables. Automatic variables are allocated storage in the memory of the computer; however, for most computers, accessing data in memory is considerably slower than processing in the CPU. These computers often have small amounts of storage within the CPU itself where data can be stored and accessed quickly. These storage cells are called registers.

    Please Login First :

    15 / 123

    Where is an auto variable stored?

    Each program is allocated two types of storage stack and heap .Auto variables are also known as local variable
    and  are stored in stack.

    Please Login First :

    16 / 123

    What is scope & storage allocation of extern and global variables?

    Scope: it defines the life time of a variable depends on declaration of a variable.If it is declared inside the variable it is local variable,If it is outside it is global variable.
    Extern variables: belong to the External storage class and are stored in the main memory

    Please Login First :

    17 / 123

    What is scope & storage allocation of register, static and local variables?

    Register variables: is the register storage class and are stored in the CPU registers.
    The scope of the register variables is local to the block in which the
    variables are defined. The variables which are used for more number of
    times in a program are declared as register variables for faster access.

    Please Login First :

    18 / 123

    What are storage memory, default value, scope and life of Automatic and Register storage class?

    No Discussion on this question yet!

    Please Login First :

    19 / 123

    What is memory leak?

    a failure in a program to release discarded memory, causing impaired performance or failure.


    Please Login First :

    20 / 123

    What is the difference between 'break' and 'continue' statements?

    If we see any loop if break is present then the loop terminates and comes out of the loop. Break is used in switch .

    Where as in continue it just skips the below statements.continue is used in loops

    Please Login First :

Frequently asked C Language Technical Interview Questions and Answers - Q4Interveiw.com at Freshers and experience level. All Question are based on the real time experience of previous candidates. You can search and filter the question set by company name from the tag cloud.

Q4I Collection of C Programming Interview Questions and Answers with Explanations asked in campus/off-campus interviews, walk-in interview and various IT companies Interview at Freshers & Experienced level. Multiply your selection chance by practicing the C Interview Question from basic to Standard, or by going through Company specific pattern of question asked from C Programming.

So, next time, when you prepare for a company's interview, please check your knowledge against these C language technical interview questions and answers.