Interview questions
C interview questions – page 45
2,094 questions. Tap “Show answer” to check yourself.
-
Explain what is object oriented programming language?
-
Main(){if (!(1&&0)){printf("OK I am done.");}else{printf("OK I am gone.");}}
-
Difference between calloc and malloc ?
-
Output of this Programme please?main(){int a[]={2,4,6,8,10};int i;change(a,5);for(int i=0;i<=4;i++)printf(" %d", a[i]);}change(int *b,int n){int i;for(i=0;i *(b+i) = *(b+i)+5;}sytaxis correct? was asked i a test
-
What is the syntax for calling an overloaded constructor within a constructor (this() and constructorname() does not compile)?
-
What are the examples of encapsulation?
-
What is the difference between a struct and a class in C#?
-
Is it possible to have different access modifiers on the get/set methods of a property?
-
What is the difference between compile time error and run time error?
-
Code To draw a three dimensional graph using c graphics?
-
Q1.write C++ program to accept a string and display ascii value letter by letter then display sum of all ascii values.Q2.write C++ program to accept 20 nos and then display max & min.
-
How can I get around scope problems in a try/catch?
-
How do I convert a string to an int in C#?
-
Output of the following programvoid main(){unsigned i;i=100*400;printf(
-
Explain about encapsulation?
-
Can you inherit multiple interfaces?
-
What is the data provider name to connect to Access database?
-
What does the parameter Initial Catalog define inside Connection String?
-
Does C# support try-catch-finally blocks?
-
What is friend function and this operator in c++?
-
Explain about the relationship between object oriented programming and databases?
-
What is an interface class?
-
Explain about UML?
-
Give me Change syntax of color change (1)Background color(2)font color(3)size of font
-
What is the difference between the System.Array.CopyTo() and System.Array.Clone()?
-
What do you mean by binding of data and functions?
-
Why the six operators can't be overloaded? b)Why main() is a userdefined function?
-
How to write a C program to find the power of 2 in a normal way and in single step?
-
How can i find size of a variable without using sizeof() operator?
-
#define int charmain(){int i=65;printf("sizeof(i)=%d",sizeof(i));}