C Language Interview Questions & Answers

Showing 10 of 130 questions | Page 12

Technical interview questions and answers are essential for clearing a C Language Interview because C is the foundation of all modern programming languages. C interviews typically include questions related to pointers, loops, functions, arrays, memory allocation, structures, and file handling. Whether you are preparing for campus placements or software development roles, companies such as TCS, Wipro, Infosys, Cognizant, and Accenture frequently test your C programming basics. This guide includes the most frequently asked C Language interview questions with clear explanations to help freshers and job seekers build strong conceptual understanding. Learning these questions will help you perform confidently in coding rounds, written tests, and technical interviews.

C programmers should advance their skills by learning C++ programming  and mastering data structures  for algorithm development 

Showing 10 of 130 questions

111. What is the maximum combined length of command line arguments including the space between adjacent arguments?

It depends on the operating system.

112. What is the difference between the functions memmove() and memcpy()?

The arguments of memmove() can overlap in memory. The arguments of memcpy() cannot.

113. What is a file?

A file is a region of storage in hard disks or in auxiliary storage devices.It contains bytes of information .It is not a data type.

114. what are the types of file?

Files are of two types 1-high level files (stream oriented files) :These files are accessed using library functions 2-low level files(system oriented files) :These files are accessed using system calls

115. what is a stream?

A stream is a source of data or destination of data that may be associated with a disk or other I/O device. The source stream provides data to a program and it is known as input stream. The destination stream eceives the output from the program and is known as output stream.

116. What is meant by file opening?

The action of connecting a program to a file is called opening of a file. This requires creating an I/O stream before reading or writing the data.

117. What is FILE?

FILE is a predefined data type. It is defined in stdio.h file.

118. What is a file pointer?

The pointer to a FILE data type is called as a stream pointer or a file pointer. A file pointer points to the block of information of the stream that had just been opened.

119. How is a file closed ?

A file is closed using fclose() function Eg. fclose(fp); Where fp is a file pointer.

120. Are the expressions *ptr ++ and ++ *ptr same?

No,*ptr ++ increments pointer and not the value pointed by it. Whereas ++ *ptr increments the value being pointed to by ptr.
Questions and Answers for Competitive Exams Various Entrance Test