Interview questions

C interview questions – page 36

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

  1. Can you override private virtual methods?

  2. How to convert Stack in to Queue and v varsa ?c with data structure.

  3. How can i print a?%? character in a print format string?

  4. What does it mean-a[i]=i+i

  5. What has triggered the need for multitasking in PCs?

  6. Print even nos between 100 to 150 using while loop?

  7. How do i get started for any project?

  8. How do you implement thread synchronization (Object.Wait, Notify,and CriticalSection) in C#?

  9. What are the advantages of auto variables?

  10. Can we use string in switch statement?

  11. Is there regular expression (regex) support available to C# developers?

  12. Difference between Funtion to pointer and pointer to function

  13. What is the difference between declaring a variable and defining a variable?

  14. How do you print an address?

  15. What connections does Microsoft SQL Server support?

  16. WRITE A FUNCTION IN C THAT WOULD TRAVERSE A LINEAR SINGLY LINKED LIST IN REVERSE AND WRITE OUT THE CONTENTS IN REVERSE ORDER.

  17. How can i create a program in C++which would input 5 random numbers, then it would arrange them in an ascending order, in descending order, from highest to lowest value and from lowest to highest value?

  18. Main(){int i = 0xff ;printf("n%d", i<<2);}

  19. What is a destructor in c++? Explain briefly?

  20. Tell me the difference between strdup and strcpy?

  21. What is a null pointer?

  22. Can you allow class to be inherited, but prevent the method from being over-ridden?

  23. WRITE A PROGRAM TO READ A POSITIVE INTEGER AND PRINT ITS BINARY EQUIVALENT.

  24. Difference between malloc and calloc?

  25. Write a pro gramme to show bubble sort on a set of 10 numbers?

  26. Define Data Abstraction?

  27. Write programs using nested loops to produce the following design:** * ** * * * ** * **

  28. Can recursive programs be written in C++, Write a recursive program to calculate factorial in C++.

  29. How pointer variables are initialized ?

  30. Struct Foo{char *pName;};main(){struct Foo *obj = malloc(sizeof(struct Foo));clrscr();strcpy(obj->pName,"Your Name");printf("%s", obj->pName);}

Companies that ask C questions