C language interview questions and answers for freshers

Assuming that INT is a variable of type float, this statement is valid. If the amount of data stored in a file is fairly large, the use of random access will allow you to search through it quicker. The parameters are always strings held in the second argument below in args of the function which is array of character pointers. With arrays, only 1 name is used, the rest are accessible through the index name grade[0], grade[1], grade[2]… grade[9].

Uploader: Dashicage
Date Added: 14 October 2014
File Size: 13.34 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 28079
Price: Free* [*Free Regsitration Required]

In the second expression, the current value of variable a would the one to be used in an operation, before the value of a itself is incremented. On the top most level of precedence are the unary operators! Static memory allocation II.

When the user presses the enter key to end the input, the entire line of characters is stored to a string variable. November 22, at This means that reserved words have special meaning and therefore cannot be used for purposes other than what it is originally intended for. It is referred to as a terminating null character, and is used primarily to show fog end of a string value.

In the second form ,the preprocessor anewers the file only in the implementation defined locations.

A structure containing an element of another structure as its member is referred so. Each header file contains a set of functions.

c interview questions and answers for freshers

Dear readers, freshes C Programming Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of C Programming. It can be placed interviee in the program. Dynamic data structure provides a means for storing data more efficiently into memory.

These files are accessed using system calls. Abs is used for integer values, while fabs is used for floating type numbers.

C Programming Interview Questions

To access a particular data within the sequential access file, data has to be read one data at a time, until the right one is reached.

You can then use qustions as PI in the program, instead of having to write 3.

For comparing string values, there is another function called strcmp that deals specifically with strings. June 1, at 6: However, some programmers prefer declaring the structure globally, then pass a variable of that structure type to a function. February 18, at The arguments which we pass to the main function while executing the program are called as command line arguments. Yes, use the qsort function. Then such a pointer is called as dangling pointer. Because, both 3 and 4 are integers.

Random generates random number between 0 and n-1. Enumerated types allow the programmer to use more meaningful words as values to a variable.

Operating System Interview Questions 6. This is also known as postfix increment. Dynamic memory allocation A newline escape sequence can be placed before the actual output expression or after. A null statement is no executable statements such as ; semicolon.

More generic functions definition gives the ability to re-use the functions, such as built-in library functions. Yes, if it is not appearing as the last case and if we do not want the control to flow to the following case after default if any. It can serves as a reminder on what the program is all about, or a description on why a certain code or function was placed there in the first place. C Language Interview Questions 2.

About the Author: Zoloktilar


Leave a Reply

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