Interview questions

C interview questions – page 55

2,094 questions. Tap “Show answer” to check yourself.

  1. Write a c program to add two integer numbers without using arithmetic operator +

  2. The output will be#include<stdio.h>int main (){int i;i = 9/2;printf("%i",i);return 0;}

  3. When you call malloc() to allocate memory for a localpointer, do you have to explicitly free() it?

  4. Write program for palindrome

  5. What is difference b/w extern & volatile variable?

  6. What is the first address that gets stored in stack according to a C or C++ compiler? or what will be the first address that gets stored when we write a C source code?

  7. How compiler selects(internally) required overriddenfunction in inheritance?

  8. Is the below things valid & where it will be stored inmemory layout ?static const volatile int i;register struct { } ;static register;

  9. Tell about single linked list?. WriteCode for to insert delete node.

  10. Compute the nth mumber in the fibonacci sequence?

  11. Wats the diff between sealed class and private class in inheritance

  12. Program to display given 3 integers in ascending order

  13. Write a program which take a integer from user and tell whether the given variable is squar of some number or not.eg: is this number is 1,4,9,16... or not

  14. Write the code for Palindrome ?

  15. What are the advantages of C++ programming compared to Cprogramming?

  16. What are the commands should be given before weiting C Program i.e, Cd.. like

  17. What does " calloc" do?

  18. WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in cfile management?

  19. What is the difference between pass by reference and pass byvalue?

  20. What is data Abstraction? and give example

  21. What is aggregation and composition ?

  22. What is the difference between auto and static keywords

  23. Explain the Scope of public/private/friend/protected/protected friend.

  24. Write a program to swap Two numbers without using temp variable.

  25. Define function

  26. WHAT IS FORCE COMPILE?

  27. Overloding and overriding.

  28. Add 2 64 bit numbers on a 32 bit machine

  29. Why data types in all programming languages have some range? Why ritche have disigned first time likethat? Why not a single data type can support all other types?

  30. What are the important concepts in OOPS

Companies that ask C questions