Monday, February 3, 2014

Hhhh

|   | | C programing Test - Random| Time left(a): 00:28:05 | Online Test > Online C Programming Test > C Programming Test - Random (Mock Test) C Programming| get erupt & Statistics| 1.| What will be the turnout of the program? # permit in<stdio.h># coiffure PRINT(i) printf(%d,,i)int main(){ int x=2, y=3, z=4; PRINT(x); PRINT(y); PRINT(z); fall down 0;}| | | A.| 2, 3, 4| | | | B.| 2, 2, 2| | | | C.| 3, 3, 3| | | | D.| 4, 4, 4| | | resoluteness: Option AExplanation:The macro PRINT(i) print(%d,, i); prints the given protean value in an integer format. blackguard 1: int x=2, y=3, z=4; The variable x, y, z argon tell as an integer type and initialized to 2, 3, 4 respectively. feeling 2: PRINT(x); becomes printf(%d,,x). thusly it prints 2. Step 3: PRINT(y); becomes printf(%d,,y). so it prints 3. Step 4: PRINT(z); becomes printf(%d,,z). Hence it prints 4. Hence the output of the program is 2, 3, 4.Lea rn much problems on : C Preprocessor wrangle about this problem : Discuss in meeting place Workspace| 2.| What will be the output of the program? #include<stdio.h>#define SQUARE(x) x*xint main(){ featherbed s=10, u=30, t=2, a; a = 2*(s-u*t)/SQUARE(t); printf( resolve = %f, a); fade 0;}| | | A.| Result = -100.000000| | | | B.| Result = -25.000000| | | | C.| Result = 0.000000| | | | D.| Result = 100.000000| | | rejoinder: Option AExplanation:The macro work SQUARE(x) x*x regard the square of the given reckon x. (Eg: 102) Step 1: float s=10, u=30, t=2, a; Here the variable s, u, t, a are declared as an floating point...If you requirement to get a rise essay, order it on our website: BestEssayCheap.com

If you want to get a full essay, visit our page: cheap essay

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.