C Interview Questions
Questions Answers Views Company eMail

Why doesn't C support function overloading?

2 2186

Why n++ execute faster than n+1 ?

2 2339

What are the advantages of Macro over function?

1 1631

What is the difference between struct and union in C?

1 898

What is call by reference in functions?

1 901

What is pass by reference in functions?

551

What is a memory leak? How to avoid it?

1 899

What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1 956

What is typedef?

1 1014

Why is it usually a bad idea to use gets()? Suggest a workaround.

1 1370

What are dangling pointers? How are dangling pointers different from memory leaks?

1 931

What is the difference between ‘g’ and “g” in C?

1 3453

Add Two Numbers Without Using the Addition Operator

572

Subtract Two Number Without Using Subtraction Operator

600

Multiply an Integer Number by 2 Without Using Multiplication Operator

558


Post New C Questions

Un-Answered Questions { C }

Explain how do you override a defined macro?

822


What is the meaning of && in c?

768


How can I find out if there are characters available for reading?

875


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

861


What does the c preprocessor do?

860


What is C language ?

1729


Why do we use namespace feature?

826


What is static function in c?

857


What does %d do?

966


Write a program to reverse a string.

854


How is null defined in c?

877


What is #include cctype?

836


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

5114


how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.

1457


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

844