Interview questions
C interview questions – page 42
2,094 questions. Tap “Show answer” to check yourself.
-
What is the difference between an object and a class?
-
Explain the implementation phase with respect to OOP?
-
When should a far pointer be used?
-
How can you access the static member of a class?
-
Can the size of an array be declared at runtime?
-
When we access the integer and the character variables without declaring them in program?and Why?
-
How do I use c-strings to write a c program that Removes multiple spaces between words in a paragraph?
-
Are private class-level variables inherited?
-
Can we call a virtual function in a constructor? give example.
-
How can send unlimited no of arguments to a function, eg printf function can take any no of arguments
-
What compiler was used?
-
How to add 2 numbers without + sign?
-
Between a long pointer and a char pointer , which one consumes more memory? explain
-
Explain about the analysis phase?
-
Following declarations are sameconst char *s; char const *s;
-
What is the difference between structure and union?
-
Define Inheritance?
-
What are classes?
-
What is the difference between the Debug class and Trace class?
-
What is the purpose of main( ) function?
-
What are the advantages and disadvantages of inheritance?
-
Const int perplexed = 2;#define perplexed 3main(){#ifdef perplexed#undef perplexed#define perplexed 4#endifprintf("%d",perplexed);}
-
Why we use static class
-
Main(){int c = 5;printf("%d", main||c);}
-
How do I make a DLL in C#?
-
Can we print values from 1 to 100 without using for,while,do-while,if etc.?answer should be logical.
-
State about Java and its relation to Object oriented programming?
-
How's method overriding different from overloading?
-
What is delegates ?
-
Main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; }