CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - printf.c
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - printf.c - List
[
matlab
]
choice-of-radio-freq
DL : 0
C,C++ Questions 1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object,. calling of that virtual method will result in which method being called? a. Base method b. Derived method.. Ans. b 2. For the following C program #define AREA(x)(3.14*x*x) main() {float r1=6.25,r2=2.5,a a=AREA(r1) printf("\n Area of the circle is f", a) a=AREA(r2) printf("\n Area of the circle is f", a) } What is the output? Ans. Area of the circle is 122.656250 Area of the circle is 19.625000 3. What do the following statements indicate. Explain. • int(*p)[10] • int*f() • int(*pf)() • int*p[10] Refer to: -- Kernighan & Ritchie page no. 122 -- Schaum series page no. 323 -C,C++ Questions 1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object,. calling of that virtual method will result in which method being called? a. Base method b. Derived method.. Ans. b 2. For the following C program #define AREA(x)(3.14*x*x) main() {float r1=6.25,r2=2.5,a a=AREA(r1) printf("\n Area of the circle is f", a) a=AREA(r2) printf("\n Area of the circle is f", a) } What is the output? Ans. Area of the circle is 122.656250 Area of the circle is 19.625000 3. What do the following statements indicate. Explain. • int(*p)[10] • int*f() • int(*pf)() • int*p[10] Refer to: -- Kernighan & Ritchie page no. 122 -- Schaum series page no. 323
Date
: 2025-12-21
Size
: 143kb
User
:
bhavin
[
matlab
]
Virtual-router
DL : 0
C,C++ Questions 1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object,. calling of that virtual method will result in which method being called? a. Base method b. Derived method.. Ans. b 2. For the following C program #define AREA(x)(3.14*x*x) main() {float r1=6.25,r2=2.5,a a=AREA(r1) printf("\n Area of the circle is f", a) a=AREA(r2) printf("\n Area of the circle is f", a) } What is the output? Ans. Area of the circle is 122.656250 Area of the circle is 19.625000 3. What do the following statements indicate. Explain. • int(*p)[10] • int*f() • int(*pf)() • int*p[10] Refer to: -- Kernighan & Ritchie page no. 122 -- Schaum series page no. 323 -C,C++ Questions 1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object,. calling of that virtual method will result in which method being called? a. Base method b. Derived method.. Ans. b 2. For the following C program #define AREA(x)(3.14*x*x) main() {float r1=6.25,r2=2.5,a a=AREA(r1) printf("\n Area of the circle is f", a) a=AREA(r2) printf("\n Area of the circle is f", a) } What is the output? Ans. Area of the circle is 122.656250 Area of the circle is 19.625000 3. What do the following statements indicate. Explain. • int(*p)[10] • int*f() • int(*pf)() • int*p[10] Refer to: -- Kernighan & Ritchie page no. 122 -- Schaum series page no. 323
Date
: 2025-12-21
Size
: 21kb
User
:
bhavin
[
matlab
]
Index
DL : 0
C,C++ Questions 1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object,. calling of that virtual method will result in which method being called? a. Base method b. Derived method.. Ans. b 2. For the following C program #define AREA(x)(3.14*x*x) main() {float r1=6.25,r2=2.5,a a=AREA(r1) printf("\n Area of the circle is f", a) a=AREA(r2) printf("\n Area of the circle is f", a) } What is the output? Ans. Area of the circle is 122.656250 Area of the circle is 19.625000 3. What do the following statements indicate. Explain. • int(*p)[10] • int*f() • int(*pf)() • int*p[10] Refer to: -- Kernighan & Ritchie page no. 122 -- Schaum series page no. 323 -C,C++ Questions 1. Base class has some virtual method and derived class has a method with the same name. If we initialize the base class pointer with derived object,. calling of that virtual method will result in which method being called? a. Base method b. Derived method.. Ans. b 2. For the following C program #define AREA(x)(3.14*x*x) main() {float r1=6.25,r2=2.5,a a=AREA(r1) printf("\n Area of the circle is f", a) a=AREA(r2) printf("\n Area of the circle is f", a) } What is the output? Ans. Area of the circle is 122.656250 Area of the circle is 19.625000 3. What do the following statements indicate. Explain. • int(*p)[10] • int*f() • int(*pf)() • int*p[10] Refer to: -- Kernighan & Ritchie page no. 122 -- Schaum series page no. 323
Date
: 2025-12-21
Size
: 26kb
User
:
bhavin
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.