Interview questions
C interview questions – page 53
2,094 questions. Tap “Show answer” to check yourself.
-
Difference between abstract class and Interfaces?
-
In one file global variable int i; is declared as static. Inanother file it is extern int i=100;Is this valid ?
-
How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range1-1000 which should pick randomly, ie ,for each time we runthe code we should get different outputs.
-
Char* ptr = "Rahul";*ptr++;printf("%s",ptr);What will be the output
-
Write a program to find the given number is prime or not
-
How to calculate Total working time using Login and logout?
-
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST
-
#include <stdio.h>int main ( int argc, char* argv [ ] ){int value1 = 10;int value2 = 5;printf ( "n The sum is :%d", value1 | value2 );} This is the answer asked by some one to add two numbers with out using arithmetic operator? Yes this answer is write it given out put as 15.But how?what is need of following line?int main ( int argc, char* argv [ ] )how it work?what is the meaning for this line?please explain me.Advance thanks
-
To find whether a number is even or odd without using anyconditional operator?
-
What is size of a empty class?
-
What is multiple inheritance ?
-
A->B->C (EXTENDS)How the constructors are called when we created an object of C
-
Int *p = NULL;printf("%1d",p) ;what will be the output of this above code?
-
Find largest element in array w/o using sorting techniques.
-
What is the difference b/w constant & read only variable?
-
Example of value type and refarnce type
-
What is a headerfile?and what will be a program without itexplain nan example?
-
What is a private constructor? where will you use it?
-
Write code for initializing one dimentional and two dimentional array in a C Program?
-
What are the characteristics of oops?
-
Main(){float f1=10.5;double db1=10.5if(f1==db1)printf("a");elseprintf("b")}
-
What is design patterns in C++?
-
Copy Linked List using recursive function?
-
Write the program for prime numbers?
-
Write a c program to find the square of a 5 digit number and print the result.
-
What is the difference between getch() and getche()?
-
How does the for loop work actually..suppose for the following program how it ll work plz explain to mefor(i=5;i>=0;i--)prinf(i--);
-
What is insertion sort?
-
WHAT IS THE EXACT USE OF INTERFACE(DONT TELL USE FOR MULTIPLE INHERITANCE)
-
How to print 2-D array using a single for loop?