C Interview Questions
Questions Answers Views Company eMail

What is the difference between a structure and a union?

1 192

How can you dynamically allocate memory in C?

1 122

What are macros in C?

1 122

What is a segmentation fault?

1 174

What is the use of the sizeof operator?

1 229

Explain the difference between fopen() and freopen().

1 146

What is the difference between calloc() and realloc()?

1 169

Explain #pragma in C.

1 153

What are dangling pointers?

1 167

What is undefined behavior?

1 181

What is the use of the restrict keyword?

1 148

What is an lvalue and an rvalue?

1 174

Can a program have multiple main() functions?

1 149

What is the output of printf("%d", printf("Hello"));?

1 170

Why is C called a middle-level language?

1 145


Post New C Questions

Un-Answered Questions { C }

How can I discover how many arguments a function was actually called with?

740


What will be your course of action for a push operation?

753


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

761


Was 2000 a leap year?

752


Why does everyone say not to use gets?

719






main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

750


Explain what is output redirection?

776


Why ca not I do something like this?

692


How do we declare variables in c?

699


Add Two Numbers Without Using the Addition Operator

474


how to make a scientific calculater ?

1687


Explain what’s a signal? Explain what do I use signals for?

712


#include { printf("Hello"); } how compile time affects when we add additional header file .

1540


What is structure padding and packing in c?

727


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

720