Interview questions
C interview questions – page 33
2,094 questions. Tap “Show answer” to check yourself.
-
If the following program (myprog) is run from the command line as myprog 1 2 3, What would be the output? main(int argc, char *argv[]) { int i,j=0; for(i=0;i<argc;i++) j=j+ atoi(argv[i]); printf("%d",j); }
-
What will be the output of the following program in UNIX OS with CC compiler and TC compiler?int main(){int i=5;printf("%d",++i + ++i + ++i + ++i + ++i );}If any difference then Why it is difference?
-
What is modular programming?
-
If the program (myprog) is run from the command line as myprog 1 2 3 , What would be the output? main(int argc, char *argv[]) { int i; for(i=0;i<argc;i++) printf("%s",argv[i]); }
-
Why should I prototype a function?
-
How to remove duplicate elements from an array
-
To which numbering system can the binary number 1101100100111100 be easily converted to?
-
What is the Datagird ?
-
What is Thread? Use of Threads in c#.
-
Main(){int x=5;clrscr();for(;x<= 0;x--){printf("x=%d ", x--);}}
-
What are comment line arguments in C programiing? and also give an example.
-
#include<conio.h>main(){int x,y=2,z,a;if(x=y%2) z=2;a=2;printf("%d %d ",z,x);}
-
What is a multicast delegate?
-
What do the functions atoi(),itoa()and gctv()do?
-
Define a class named cord, a point in Cartesian coordinate system where each point has two int type values x and y. Your class must contain necessary constructors and arithmetic operator functions. Write necessary codes to test your class?
-
Main(){signed int bit=512, i=5;for(;i;i--){printf("%dn", bit = (bit >> (i - (i -1))));}}
-
What are advantages and disadvantages of external storage class?
-
Explain one method to process an entire string as one unit?
-
Can you store multiple data types in System.Array?
-
Why would you use untrusted verificaion?
-
Main(){char *p;printf("%d %d ",sizeof(*p),sizeof(p));}
-
How i can run *.bat or *.cmd file by using system function in c ?
-
Are pointers integers?
-
What are the problems faced by the developer using object oriented programming language?
-
What's the top .NET class that everything is derived from?
-
How can you determine the size of an allocated portion of memory?
-
What is an argument ? differentiate between formal arguments and actual arguments?
-
What's wrong with this code? Char*p*p=malloc(10);
-
Why are there five tracing levels in System.Diagnostics.TraceSwitcher?
-
Main(){float me = 1.1;double you = 1.1;if(me==you)printf("I love U");elseprintf("I hate U");}