Site Overlay

INTERVIEW QUESTIONS C PROGRAMMING YASHWANT KANETKAR PDF

This book is basically not about the C Language but it is helpful to practice the “C ” Language because it contains a lot of questions of “C” Language Topic Wise. popular book of “C” Language i.e. Test Your C Skills by Yashavant Kanetkar PDF . “Interview Skills that Win the Job” by Michael Spiropoulos. Interview Questions in C Programming by Yashavant P. Kanetkar, , available at Book Depository with free delivery worldwide. Interview Questions in C++ Programming, Kanetkar by Yashwant Kanetkar, , available at Book Depository with free delivery worldwide.

Author: Doujora Gozil
Country: Egypt
Language: English (Spanish)
Genre: Marketing
Published (Last): 15 July 2009
Pages: 463
PDF File Size: 6.90 Mb
ePub File Size: 3.1 Mb
ISBN: 969-3-65827-777-2
Downloads: 28492
Price: Free* [*Free Regsitration Required]
Uploader: Mezahn

List of top c interview questions and answers for freshers beginners and experienced pdf free download. Dennis Ritchie in developed a new language by inheriting the features of both BCPL and B and adding additional features. He named the language as just C. Even the B language was found to have some short comings to support development of both business applications and system software.

C is one of the high level languages. It is a general purpose language, which means it can be used to write programs of any sort. It is usually called system programming language but equally suited to writing a variety of applications.

100 TOP interview Questions c Programming yashwant kanetkar pdf

Header files provide the definitions and declarations for the library functions. Thus, each header file contains the library functions along with the necessary definitions and declarations. Character set is the set of characters allowed and supported in the programming language. Generally a program is a collection of instructions, which contain groups of characters.

Only a limited set of characters is allowed to write instructions in the program. A string is a sequence of characters ending with NUL. It can be treated as a one—dimensional array of characters terminated by a NUL character. Qualifiers or modifiers are identifiers that may precede the scalar data types except float to specify the number of bits used for representing the respective type of data in memory. The qualifiers in C are short, long, signed, and unsigned.

A yahwant is a value that does not change during the program execution. A constant used in C does not occupy memory. An yashwaht is used to identify and store some value. If the value of the identifier is changed niterview the execution yashwajt the program, then the identifier is known as variable.

Global Variables are those, which are required to be acccessed by all the functions defined after their declaration. Keywords are those words of C which have predefined meaning assigned by the C language. They form a part of the database required by the C compiler. Expression is defined as a combination of operands and operators to obtain some computation.

Operands represent variables or values and The operator tells is what operation to be performed. For this reason, C is referred to as a Middle Level Language. The feature quextions ALLs is that of enabling us to develop system level programs and the features of HLLs are those of higher degree of readability and machine independence.

The variables can be categorized by storage class as well as by quetions type. The storage class specifies the portion of the prpgramming within which the variables are recognized. The type declaration allow to create a synonym for other data types.

  EL CROQUIS MURCUTT PDF

C language a function may call another function. When a function calls itself, it is referred to as recursive call and the process is known as recursion. C provides very good facilities for recursion. Data types refer to the classes of data that can be manipulated by C programs. The three fundamental data types supported by C are character, integer and real type.

Errors may be made during program creation even by experienced programmers. Such type of errors are detected by the compiler. Debugging means removing the errors. It is the first function to be called when the program starts execution. It is the explicit type conversion required for a number before carrying out processing or assigning to another variable. There are five different kinds of data types in C. The typedef help in easier modification when the programs are ported to another machine.

A descriptive new name given to the existing data type may be easier to understand the code.

Yashavant Kanetkar – Wikipedia

Type specifiers decide the amount of memory space occupied by a variable. In the ease of integral types; it also explicitly states the range of values that the object can hold. Masking is a process in which a given bit pattern is partly extracted into another bit pattern by means of a logical bitwise operation.

A numeric value, may have a positive or a negative sign. In the memory, for a variable, one bit is used exclusively to maintain the sign of the data. If the value is negative, the sign bit is 1, and if it is positive, it will be 0. It is a pointer that points to the current object.

This can be used to access the members of the current object with the help of the arrow operator. The array subscripts always start at zero. The compiler makes use of subscript values to identify the elements in the array.

Since subscripts start at 0, it is said that array uses zerobased addressing. A loop is a process to do a job repeatedly with possibly different data each time. The statements executed each time constitute the loop body, and each pass is called iteration.

A condition must be present to terminate the loop. There are five basic Data types in C.

TOP interview Questions c Programming yashwant kanetkar pdf

The function declaration should be preceded by the keyword friend. The function definitions does not use either the keyword or the scope operator The functions that are declared with the keyword friend as friend function.

Thus, a friend function is an ordinary function or a member of another class. When a break is encountered inside a loop, the loop is terminated and the control passes to the statement following the body of the loop. It returns a character just entered from the standard input unit, that is, keyboard.

The entered character can be either assigned to a character variable or echoed to the computer screen. Reserved words are words that are part of the standard C language library. This means that reserved words have special meaning and therefore cannot be used for purposes other than what it is originally intended for.

  DOA RATIB HADDAD PDF

Examples of reserved words are int, void, and return. A linked list is composed of nodes that are connected with another. In C programming, linked lists are created using pointers. Using linked lists is one efficient way of utilizing memory for storage. In C programming, there is oanetkar data structure known as queue.

A queue represents a line wherein the first data that was stored will be the first one that is accessible as well. Binary trees are actually an extension of the concept of linked lists. A binary tree has two pointers, a left one and a right one.

Each side can further branch to form additional nodes, which each node having two pointers kaneykar well. All reserved words must be written in lowercase; otherwise the C compiler would interpret this as unidentified and invalid.

In the first expression, the increment would happen first on variable a, and the resulting value will be the one to be used. This is also known as a prefix increment. In the second expression, the current value of variable a would the one to be used in an operation, before the value of a kanetkarr is incremented.

This is also known as postfix increment. C language is a case sensitive language. An endless loop can mean two things. 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. Another idea of an endless loop is when an incorrect loop condition was written, causing the loop to run erroneously forever.

Endless loops are oftentimes referred to as infinite loops. A flowchart provides a kanetiar representation of the step by step procedure towards solving a given problem. Flowcharts are made of symbols, with each symbol in the form of different shapes. You cannot use reserved words as a user-defined variable.

One may think that INT is a reserved word and must not be used for other purposes. However, recall that reserved words are express in lowercase, so the ,anetkar compiler will not interpret this as a quuestions word.

Interview Questions in C & C++ Programming

When you create and use functions that need to perform an action on some given values, you need ywshwant pass these given values to that function. The values that are being passed into the called function are referred to as actual arguments.

A newline escape sequence is represented by the n character. This is used to insert a new line when displaying data in the output screen. More spaces can be added by inserting more n characters. For example, nn would insert two spaces. A newline integview sequence can be placed before the actual output expression or after. It is the process of transferring data to an alternative output source other than the display screen.