Method Overloading exist in c ?
Answers were Sorted based on User's Feedback
Answer / sunitha.gottipati
Method overloading is not supported by c. it is supported
in java
| Is This Answer Correct ? | 21 Yes | 2 No |
Answer / thavamoorthi
c does not support the method overloading it supported only by object oriented
| Is This Answer Correct ? | 20 Yes | 2 No |
Answer / nagulmmera
Not exit in c,method overloading supported in oop
| Is This Answer Correct ? | 11 Yes | 0 No |
18)struct base {int a,b; base(); int virtual function1(); } struct derv1:base{ int b,c,d; derv1() int virtual function1(); } struct derv2 : base {int a,e; } base::base() { a=2;b=3; } derv1::derv1(){ b=5; c=10;d=11;} base::function1() {return(100); } derv1::function1() { return(200); } main() base ba; derv1 d1,d2; printf("%d %d",d1.a,d1.b) o/p is a)a=2;b=3; b)a=3; b=2; c)a=5; b=10; d)none 19) for the above program answer the following q's main() base da; derv1 d1; derv2 d2; printf("%d %d %d",da.function1(),d1.function1(),d2.function1 ()); o/p is a)100,200,200; b)200,100,200; c)200,200,100; d)none 20)struct { int x; int y; }abc; you can not access x by the following 1)abc-->x; 2)abc[0]-->x; abc.x; (abc)-->x; a)1,2,3 b)2&3 c)1&2 d)1,3,4
what is the definition of storage classes?
What are the restrictions of a modulus operator?
Can a pointer point to null?
6)swap(int x,y) { int temp; temp=x; x=y; y=temp; } main() { int x=2;y=3; swap(x,y); } after calling swap ,what are yhe values x&y?
Write a program in C for showing working of different logical operator in C. Your program should guide users with proper message/menu on the console.
What is a lookup table in c?
What is memcpy() function?
what is difference between array of characters and string
hi send me sample aptitude papers of cts?
what are bitwise shift operators?
What is your stream meaning?