C Interview Questions
Questions Answers Views Company eMail

Why doesn't C support function overloading?

2 1602

Why n++ execute faster than n+1 ?

2 1833

What are the advantages of Macro over function?

1 1186

What is the difference between struct and union in C?

1 565

What is call by reference in functions?

1 553

What is pass by reference in functions?

318

What is a memory leak? How to avoid it?

1 565

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

1 551

What is typedef?

1 659

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

1 894

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

1 613

What is the difference between ā€˜gā€™ and ā€œgā€ in C?

1 2495

Add Two Numbers Without Using the Addition Operator

351

Subtract Two Number Without Using Subtraction Operator

348

Multiply an Integer Number by 2 Without Using Multiplication Operator

314


Post New C Questions

Un-Answered Questions { C }

What is void main () in c?

722


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1730


Why does everyone say not to use gets?

603


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

759


What should malloc(0) do?

608






How is a macro different from a function?

652


What is calloc malloc realloc in c?

585


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

599


What is the need of structure in c?

560


Can you apply link and association interchangeably?

665


Why doesnt that code work?

597


Write a program to reverse a given number in c?

592


Can you pass an entire structure to functions?

688


How do I use strcmp?

632


What are the string functions? List some string functions available in c.

596