ganeshuit


{ City } pune
< Country > india
* Profession *
User No # 70619
Total Questions Posted # 3
Total Answers Posted # 2

Total Answers Posted for My Questions # 12
Total Views for My Questions # 24100

Users Marked my Answers as Correct # 8
Users Marked my Answers as Wrong # 2
Questions / { ganeshuit }
Questions Answers Category Views Company eMail

is c language is a object oreinted language?

TCS,

5 C 5384

main() { int a=5; printf(?%d,%d,%d\n?,a,a< <2,a>>2); } Answer: 5,20,1 please explain this code in detail

TCS,

6 C 13681

#include int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?

1 C 5035




Answers / { ganeshuit }

Question { Wipro, 11318 }

What is size of a empty class?


Answer

when ever an datamember is not the part of the class then default value for object size is 1 byte.
but if int a;
char c;
then it will consume 3 bytes .........

Is This Answer Correct ?    2 Yes 0 No

Question { 4784 }

why java does not have operator overloading?


Answer

internally java also supports operator overloading
+operator is overloaded to add integers and strings also so
oo support by java itself bt not by a programmer

Is This Answer Correct ?    6 Yes 2 No