Category Archives: C Programming Language Interview Questions

What are differences between sizeof operator and strlen function? | C Programming Language Questions

sizeof is keyword of c which can find size of a string constant including null character but strlen is function which has been defined string.h and can find number of characters in a string excluding null character.

Posted in C Programming Language Interview Questions | Leave a comment

What is use of void data type? | C Programming Language Questions

Void is an empty data type normally used as a return type in C/C++, C#, Java functions/methods to declare that no value will be return by the function. The another used of void is to declare the pointer in C/C++ … Continue reading

Posted in C Programming Language Interview Questions | Leave a comment

Define Operator, Operand, and Expression in ‘C’? | C Programming Language Questions

Operators are symbols which take one or more operands or expressions and perform arithmetic or logical computations. Operands are variables or expressions which are used in operators to evaluate the expression. Combination of operands and operators form an expression.

Posted in C Programming Language Interview Questions | Leave a comment

Where are the auto variable stored? | C Programming Language Questions

Auto variables are stored in main memory and their default value is a garbage value.

Posted in C Programming Language Interview Questions | Leave a comment

What is modular programming? | C Programming Language Questions

If a program is large, it is subdivided into a number of smaller programs that are called modules or subprograms. If a complex problem is solved using more modules, this approach is known as modular programming.

Posted in C Programming Language Interview Questions | Leave a comment

What is the difference between %d and %*d in c language? | C Programming Language Questions

%d give the original value of the variable and %*d give the address of the variable. eg:-int a=10,b=20; printf(“%d%d”,a,b); printf(“%*d%*d”,a,b); Result is 10 20 1775 1775 .Here 1775 is the starting address of the memory allocation for the integer.a and … Continue reading

Posted in C Programming Language Interview Questions | Leave a comment

What are segment and offset addresses? | C Programming Language Questions

When paging technique is performed, the page will breaks into segments and its sequence is said to be segments and its width can be said as offset. In short,segment is a physical address and offset is logical address.

Posted in C Programming Language Interview Questions | Leave a comment

What is the difference between ordinary variable and pointer in C? | C Programming Language Questions

An ordinary variable is like a container it can hold any value and we can change the value of ordinary variable at a time throughout the program .A pointer is a variable that stores the address of another Variable.

Posted in C Programming Language Interview Questions | Leave a comment

What are the advantages of using Unions? | C Programming Language Questions

Efficient use of memory as it it does not demand memory space for its all members rather it require memory space for its largest member only. Same memory space can be interpreted differently for different members of the union.

Posted in C Programming Language Interview Questions | Leave a comment

What is difference between Structure and Unions? | C Programming Language Questions

In structure every member has its own memory whereas in union its members share the same member space. In structure, it is possible to initialize all the members at the same time which is not possible in case of union. … Continue reading

Posted in C Programming Language Interview Questions | Leave a comment