Login
|
Register
Home
|
Interview Questions
|
Placement Papers
|
Tutorials
|
Forums
Interview Questions
B.I & Reporting
Business Analyst
C & C++
D.W & ETL Tools
Java
Languages
Mainframe
Microfsoft
More...
Placement Papers
Accenture
IBM
Polaris
Infosys
More...
Tutorials
DataWare Housing
SQL
C
C++
More...
Code Samples
PHP
C
C++
More...
Home
->
C & C++
->
C & C++
Submit Your Question
Rating
Excellent(5)
Good(4)
Fair(3)
Poor(2)
Useless(1)
Rate it
17)
The program that outputs the given binary or image file
Answer)
#include
#include
int main(int argc,char *argv[]) { char c; FILE* fp=fopen(argv[0],"r"); if(fp==NULL) { perror(argv[0]); exit(1); } while((c=fgetc(fp))!=EOF) fputc(c,stdout); }
«Previous
Next »
Submit Best Answer
Name:
*
Email:
*
Answer:
*
Question
1)
What is page thrashing?
2)
vi) main()\n{\nextern int i;\ni=20;\nprintf(\"%d\",i);\n}\n
3)
To which numbering system can the binary number 1101100100111100 be easily converted to?
4)
What are enumerations?
5)
main()\n{\nif (!(1&&0))\n{\nprintf(\"OK I am done.\");\n}\nelse\n{\nprintf(\"OK I am gone.\");\n}\n}\n
6)
How to find GCD of four numbers?
7)
#define SQR(x) x * x\nmain()\n{\nprintf(\"%d\", 225/SQR(15));\n
8)
When should the register modifier be used? Does it really help?
9)
write a program to remove comment lines and blank lines from an error free c program.
10)
When should a type cast be used?
11)
What is difference between the test effort and the test procedure?
12)
Between n+1 and n++ which executes faster or both take the same time to execute?
13)
What is the difference between unix and linux.
14)
How to print the names of employees or students in alphabetical order using C programming?
15)
How to write a program for pascal triangle
16)
105) #include
\nmain()\n{\nint x,y=2,z,a;\nif(x=y%2) z=2;\na=2;\nprintf(\"%d %d \",z,x);\n}\n
17)
The program that outputs the given binary or image file
18)
Which mistakes are called as token error?
19)
Why does a linker error occurs for the segment:\nmain()\n{\nextern int i;\ni=20;\nprintf(\"%d\",sizeof(i));\n}
20)
main()\n{\nint i=5;\nprintf(\"%d%d%d%d%d%d\",i++,i--,++i,--i,i);\n}
« previous
1
2
3
4
5
6
7
8
9
...
17
18
next »
About Us
|
Terms & Conditions
|
Contact Us
|
Advertise
copy right © All rights reserved 2013
SoftInterview.com