Home -> C & C++ -> C & C++


 Rating    Excellent(5)  Good(4)  Fair(3)  Poor(2)  Useless(1)  Rate it

6)  How to find GCD of four numbers?
Answer)  Take 4 numbers.The smallest number has to be found out.Then divide each number by that numbers which are less than that smallest number. e.g.5,15,75,20 smallest-5 so divide each numbers by 1,2,3,4,5. The GCD will be that number which divides all the number.(here 5)
«Previous  Next »


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}
copy right © All rights reserved 2013 SoftInterview.com