The operation of a stair case switch best explains the a) or operation b) and operation c)exclusive nor operation d)exclusive or operation Which of the following is/are syntactically correct? a) for(); b) for(;); c) for(,); d) for(;;);
1 12593b) 4 c) 6 d) 7 32. Any C program a) must contain at least one function b) need not contain ant function c) needs input data d) none of the above 33. Using goto inside for loop is equivalent to using a) continue b) break c) return d)none of the above 34. The program fragment int a=5, b=2; printf(“%d”,a+++++b); a) prints 7 b)prints 8 c) prints 9 d)none of the above 35. printf(“ab” , “cd”,”ef”); prints a) ab abcdef c) abcdef, followed by garbage value d) none of the above 36. Consider the following program segment. i=6720; j=4; while((i%j)==0) { i=i/j; j=j+1; } On termination j will have the value a) 4 b) 8 c) 9 d) 6720
1 8101Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
2 6792int 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); }
3 8101Post New HCL C Interview Questions
What is mvc? And how it works?
what is the roles and responsibilities in linux system admin having 2yrs exp..?
What is naive bayes used for?
Difference between session and sessionfactory in hibernate?
What is the 5 by 5 rule?
What are the usual project scenarios on the job (legacy systems or erp)?
What are the supported versions of windows in automation anywhere?
How will you implement internationalization in angularjs?
Is buffer size and file block size is similar? If similar,at which case it will be same size?
How to select more than one option from list in android xml file? Give an example.
Explain the laying procedure and laying depth of submarine/subsea power cable for 220/400KV system? Also available cable diameter?
How to Convert Data in Paradox Tables to InterBase Using Delphi?
TELL ME WHAT IS INDUCTOR AND CAPACITOR WHAT IS IT BASIC OPERATION ANDFUNCTION?
How and by whom the Percentage of Depreciation is fixing?
What are unix commands?