Interview questions
C interview questions – page 38
2,094 questions. Tap “Show answer” to check yourself.
-
In C++, what is a constructor,destructor?
-
Void main (){int x = 10;printf ("x = %d, y = %d", x,--x++);}
-
What is the difference between class and structure?
-
Does C# support #define for defining global constants?
-
Does Console.WriteLine() stop printing when it reaches a NULL character within a string?
-
What are the characteristics of arrays in C?
-
Does C# support multiple inheritance?
-
How argc and argv works in the following main function?main(int argc,char *argv[]) { int n,i=0; while(argv[1][i]!='
-
WRITE A PROGRAM TO READ A REAL NUMBER X ANF FIND THE EVEN NUMBER NEAREST TO X.
-
What is the difference between NULL and NUL?
-
Which mistakes are called as token error?
-
What is difference between deep copy & sallow copy?
-
What do you mean by pure virtual functions?
-
Where is the output of TextWriterTraceListener redirected?
-
How do I port "synchronized" functions from Visual J++ to C#?
-
How can we get direct printout of a c file without giving print command from bin or tc?eg i want to get the printout of a program directly after execution from the c window itself.
-
Following declarations are different from one anotherconst char *const s; char const *const s;
-
Give some explanation for "for" LOOP ON C LANGUAGE?
-
If the following program (myprog) is run from the command line as myprog monday tuesday wednesday thursday What would be the output? main(int argc, char *argv[]) { while(--argc >0) printf("%s",*++argv); }
-
How to write a C program for displaying a sentence without output command?
-
Difference between arrays and pointers?
-
What is File Mode?.Types Of file mode?.What is Pointer?.which one is most useful in Structure or Unoin?.
-
Write a program which accepts a filename as a command line argument and coverts all characters in the file to uppercase.
-
We should not read after a write to a file without an intervening call to fflush(), fseek() or rewind()
-
How to get string in files and print the string in the reverse order?
-
What is the use of semicolon at the end of every statement?
-
How would you use the functions memcpy(),memset(),memmove()?
-
Explain about object oriented databases?
-
What is stand alone class and where it will be used? Describe with the help of an example.
-
WRITE A PROGRAM TO READ A SET OF INTEGERS AND TO SEPARATE ALL ODD AND EVEN NUMBERS .WRITE ALL EVEN NUMBERS IN ASCENDING ORDER.