GeekInterview.com
Series: Subject: Topic:
Question: 12 of 38

int i;
void main()
{
int j=100,k;
cout<}
what is the output?

Asked by: dasangampraveena | Member Since Sep-2007 | Asked on: Oct 7th, 2007

View all questions by dasangampraveena

Showing Answers 1 - 6 of 6 Answers
sampra

Answered On : Mar 10th, 2008

View all answers by sampra

make ur qus clear

  
Login to rate this answer.

The above program will not compile in java as cout is not defined.

  
Login to rate this answer.
AmmiSudipto

Answered On : Jul 19th, 2008

View all answers by AmmiSudipto

void main() is not accessible to JVM. Because it not public and static. JVM has no entry point.

  
Login to rate this answer.
mani_miit

Answered On : Dec 14th, 2009

View all answers by mani_miit

There is no entry point for JVM in your program in case if it is an Java.

  
Login to rate this answer.

This program gives error becoz here j=100 but the value of j is not used.

  
Login to rate this answer.
syam

Answered On : Dec 14th, 2011

Compilation fails, why because it does not have proper syntax and structure.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.