CODE#22

what is difference between "==" and "equals" method in java ?



Submitted By - Shashank 
Thu Jun 19 17:18:59 IST 2014
Read Solution ( 5 )Like

0

Submit Solution

<br>

CODE#21



What will be output if you will compile and execute the following c code?

void main(){
int i=10;
static int x=i;
if(x==i)
printf("Equal");
else if(x>i)
printf("Greater than");
else
printf("Less than");
}


(a) Equal
(b) Greater than
(c) Less than
(d) Compiler error
(e) None of above



Submitted By - Shashank 
Wed Jun 04 22:14:53 IST 2014
Read Solution ( 8 )Like

0

Submit Solution

<br>

CODE#20

Write down your code to print Hi Sam Bye




class My
{
//your can write code here

p.s.v.main(String arg[])
{
// you can write only one line code here .

S.o.p("Sam);

}

}



Submitted By - Shashank 
Sun Mar 23 01:09:02 IST 2014
Read Solution ( 0 )Like

0

Submit Solution

<br>

CODE#19

What will be output of given program ?


#include"stdio.h"
#include"conio.h"
void main()
{
int a=999*999/999;
printf("%d",a);
getch();
}



Submitted By - Shashank 
Sat Jan 11 09:48:48 IST 2014
Read Solution ( 7 )Like

0

Submit Solution

<br>

CODE#18

void main()
{
float a=0.7,b=0.5;
if(a<0.8)
if(b<0.5)
printf("ABCD");
else
printf("EFGH");
else
printf("IJKL");
}


Asked in HAL



Submitted By - Shashank 
Mon Nov 18 21:17:26 IST 2013
Read Solution ( 7 )Like

1

Submit Solution

<br>
PAGES  1   2   3   4   5   NEXT