{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

questions - a.split b.break c.end d.All the Above Sheet1...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 1.What is the output of the following C program? main() { int x = 10 int y y = x++ + 10 x += ++y printf("x=%d y=%d",x,y) } a. x=30 y=20 b. x=31 y=20 c. x=31 y=21 d. x=32 y=21 2. Which of the following are use in switch statement? 3. Which of the following are used in dynamic memory allocation? 4. What is the keyword that is used to handle unhandled conditions in switch-case? 5. Which statement is used to get the address of the variable x? a.address(x) b.address(*x) c.*x d.&x 6. Which of the following can be used to terminate the loop?
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: a.split b.break c.end d.All the Above Sheet1 Page 2 7. What is the output of the following program? main() { printf("%d",-3/-2) } a.1 b.-1 c.-1.5 d.1.5 8. Which of the following variables retain the value throughout the lifetime of program? a.auto b.register c.static d.All the Above 9. malloc is declared in a.stdio.h b.stdlib.h c.memory.h d.conio.h 10. What is the output of the following program? char* hello(char *ptr) { ptr += 3 return (ptr) } main() { char *x, *y x = "HELLO" y = hello(x) printf ("y = %s \n", y) } a. y = HELLO b. y = LLO c. y = LO d. y = 00D457AB...
View Full Document

{[ snackBarMessage ]}