|
Question |
Rating |
View Answer |
|
Difference between const char* p and char const* p |
|
View Answer |
|
Write a program which accepts a filename as a command line argument and reverses the contents of the file( ie first character
becomes the last character of the file and so on)
Input: The program takes the file name whose content should be reversed.
Output: The program reverses the contents of the file.
|
|
View Answer |
|
How to write functions in c program without using headerfile. |
|
View Answer |
|
What is the draw back in using friend function in c++
|
|
View Answer |
|
How to write a program for pascal triangle? |
|
View Answer |
|
If the following program (myprog) is run from the command line as myprog friday tuesday sunday, What would be the output?
main(int argc, char *argv[]) { printf("%c",*++argv[1]); }
|
|
View Answer |
|
Between n+1 and n++ which executes faster or both take the same time to execute? |
|
View Answer |
|
How to reduce a final size of executable ? |
|
View Answer |
|
How can numbers be separated by comma in C?(1200 - 1,200) The number can be up to 9 digits. |
|
View Answer |
|
What is the purpose of realloc( ) ? |
|
View Answer |
|
main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } }
|
|
View Answer |
|
union u { struct st { int i : 4; int j : 4; int k : 4; int l; }st; int i; }u; main() { u.i = 100; printf("%d, %d, %d",u.i, u.st.i, u.st.l); }
|
|
View Answer |
|
How abstraction done in C? |
|
View Answer |
|
main() { int i; clrscr(); printf("%d", &i)+1; scanf("%d", i)-1; }
|
|
View Answer |
|
Can there be a mouse click and drag function used in c? |
|
View Answer |
|
What are the advantages of pointers,give me programs containing variables and pointer variables? |
|
View Answer |
|
Write character a to z in random seqence in one dimensional array then how to get 'ABC' and then directly get the 'PQR' ? |
|
View Answer |
|
When should the volatile modifier be used ? |
|
View Answer |
|
If we want that any wildcard characters in the command line argument should be approxiemately expanded , are we required to make any special provision?if yes, which? |
|
View Answer |
|
vii)7. main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }
|
|
View Answer |