C Programming Interview Questions

Q21 Write your own program to implement the atoi() function.

Q22 How to add sum the digits of a given number in single statement?

Q23 Write a C program which produces its own source code as its output.

Q24 Write a C program to convert from decimal to binary, octal, or hex number system.

Q25 Write a C program to find duplicate integer in an array.

Q26 Write a C program to check leap year.

Q27 Write a C program to round numbers.

Q28 How to check that the stack grows up or down?

Q29 Write your own code to generate random number.

Q30 When sizeof() operator works, compile time or run time?