C language interview questions and answers for freshers

The char keyword can only hold 1 character value at a time. Pointer variables are initialized by one of the following ways. In this scenario, the inner loop is performed a number of times as specified by the outer loop. Function declaration is optional if the same is invoked after its definition.

Uploader: Zolojas
Date Added: 11 October 2016
File Size: 32.35 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 87798
Price: Free* [*Free Regsitration Required]

C Programming Interview Questions - tutorialspoint

It is referred to as a terminating null character, and is used primarily to show the end of a string value. You can use atof to convert to a floating point value, atoi to convert to an integer value, and atol to convert to a unterview integer value.

Both will also hold a particular value. No, comments that were encountered by the compiler are disregarded. These are errors that occur while the program is being executed.

Leave a Reply Click here to cancel reply. It has to do with the parsing process and compilation of the code. How would you use the amswers randomize and random?

Random generates random number between 0 and n-1. One thing to note is that you cannot pass the entire array to a function. Compiler allocates memory space for a declared variable. On the other hand, compilers check the syntax of ans entire program and will only proceed to execution when no syntax errors are found.

C interview questions & Answers

Comma operator can be used to separate two or more expressions. The basic data types are int, char, and float. Debugging ensures the removal of errors, and plays an important role in ensuring that the expected program output is met. Header files are also known as library files. Comments are a great way to put some remarks or description in a program.

Structure types are primarily used to store records. One is that it was designed to loop continuously until the condition within the loop is met, after which a break function would cause the program to step out of the loop.

Job Interview Questions & Answers

After the file was opened by the fopen function, the fseek would require three parameters to work: Files are of two types 1-high level files stream oriented files: April 19, at 7: July 25, at 6: Another use of preprocessor directives is the declaration of constants. If these functions are used to get memory dynamically and the values returned by these function are assigned to pointer variables, such a way of kanguage memory at run time is known as dynamic memory allocation.

Put it in another sense, you have an inner loop that is inside an outer loop. A null statement is no executable statements such as ; semicolon. This makes it easier to organize a group of related data.

c language interview questions and answers

Also used to simplify the complex declaration of the type. A structure containing an element of another structure as its member is referred so. Each element is assigned a number from 0 to number of elements These files are accessed using system calls. Repetitions are also known as loop structures, and will repeat one or two program statements set by a counter. February 18, at Second it really doesn't matter questiona if you could not answer few questions but it matters that whatever you answered, you must have answered with confidence.

Comments 4

Leave a Reply

Your email address will not be published. Required fields are marked *