Interview questions

C interview questions – page 54

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

  1. What is the use of static abstract class

  2. Swap 2 variables without using 3 rd variable?

  3. What is the c.

  4. Difference between Encapsulation and Abstraction

  5. What is type casting. Explain it with reference to classes.

  6. What is the difference between class and structure in C++?

  7. What is Page Fault or Page thrashing ?

  8. What is the difference between structural,object based,object orientd programming languages?

  9. How can u do connectivity in c++ language? plz send me connectivity code in c++ ?

  10. If function is declared as static in one source file, if Iwould like to use the same function in some other sourcefile...is it possible...how ?

  11. Write a C++ program to find the geometric mean of a given set of numbers?

  12. What is overloading & overriding

  13. Struct ptr{int a;char b;int *p;}abc;what is d sizeof structure without using "sizeof" operator?

  14. What is the difference between the Encapsulation and Abstraction

  15. Write a C/C++ program to show the result of a storedprocedure "PROC_RESET_MAIL" on database "USER_NOTIFY".

  16. Implement stack using stack.h headerfile functions

  17. Char inputString[100] = {0}; To get string input from the keyboard which one of thefollowing is better? 1) gets(inputString) 2) fgets(inputString, sizeof(inputString), fp)

  18. Function to find the given number is a power of 2 or not?

  19. A stack can be implemented only using array?if not what is used?

  20. What is difference between array of characters and string

  21. Int *p=20;if u print like dis printf("%d",p);op:- 20; how is it possible?plz give me the explanation.

  22. Which header file contains main() function in c?

  23. Write a c-program to find gcd using recursive functions

  24. How can I make a program in c to print 'Hello' without using semicolon in the code?

  25. #include<stdio.h>main(){ int i=5; printf("%d",i*i-- - --i*i*i++ + ++i);}

  26. How much is size of struct having 1 char & 1 integer?

  27. Can we change the default calling convention in c if yesthan how...?

  28. What is a pointer

  29. Difference between abstract class and interface

  30. Int main(){int x = (2,3,4);int y = 9,10,11;printf("%d %d",x,y);}what would be the output?

Companies that ask C questions