Interview questions

C interview questions – page 34

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

  1. Is it possible to inline assembly or IL in C# code?

  2. What is the draw back in using friend function in c++

  3. What is a ?null pointer assignment? error? What are bus errors, memory faults, and core dumps?

  4. Can anyone please tell me about a website from which I could install Turbo C (compiler) for free?

  5. Main(){int x=5;clrscr();for(;x==0;x--) {printf("x=%dn?", x--);}}

  6. What do you mean by inline function?

  7. According to ANSI specifications which is the correct way of declaring main() when it receives command line arguments?

  8. Write a program to delete an element from an array?

  9. What would be the output of the following program? main() { char near * near *ptr1; char near * far *ptr2; char near * huge *ptr3; printf("%d %d %d",sizeof(ptr1),sizeof(ptr2),sizeof(ptr3)); }

  10. Can I define a type that is an alias of another type (like typedef in C++)?

  11. Write a c++ programme in order to find the day you born,such that the programmer will take your birth date (day-month-year)?

  12. How to print 1 to 100 without using any conditional loop?

  13. C# constructors cannot be inherited.Why?

  14. What is #line used for?

  15. Main(int x)...explaination on arguments passed thr' main

  16. How to decide even and odd values without decision making loops?

  17. If I return out of a try/finally in C#, does the code in the finally-clause run?

  18. How more than 2 integers or any characters may be randomly swap?

  19. Why do I get a security exception when I try to run my C# app?

  20. Is JIT compiler in .Net is vendor specific?i mean ,can we download it and use in other any language compiler?

  21. What are the advantages of the functions?

  22. Main(){int i;clrscr();for(i=0;i<5;i++){printf("%dn", 1L << i);}}

  23. How do you generate documentation from the C# file commented properly with a command-line compiler?

  24. How do you inherit from a class in C#?

  25. What is namespace?

  26. Main(){int i = 100;clrscr();printf("%d", sizeof(sizeof(i)));}

  27. Code for swapping of two numbers without using temporary variable using C.

  28. How to connect a database (MS Access) to Borland C? Please give me step by step coding.

  29. When function say abc() calls another function say xyz(), what happens in stack?

  30. What is the benefit of using const for declaring constants?

Companies that ask C questions