Interviews2 answers
For the below 3 cases which a+b; operation takes more time? 1)int a,b; 2)float a,b; 3)int a;float b;
2 Answers
int a,float b;
Neha KumariPosted Nov 5, 2017, 8:46 AM EST
int a,b;
in this case both variables are integer type so less time to take a+b
float a,b;
this is also with similar data types so answer take less time
int a; float b ;
these two variables are different type so it takes more time to a+b.
uros_goljatPosted Oct 8, 2007, 9:15 PM EDT
