Community Sites
Create your own community website and start earning today !
It's Free !
 
Communities Members BookmarksPolls Fresher Jobs Funny Pictures MCA Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter


Posted By: Sree....       Member Level: Diamond       Posted Date: 20 Jul 2008       Category: Aptitude Test

Output of the following program is
main()
{int i=0;
for(i=0;i<20;i++)
{switch(i)
case 0:i+=5;
case 1:i+=2;
case 5:i+=5;
default i+=4;
break;}
printf("%d,",i);
}
}



Select Answer:

0,5,9,13,17
5,9,13,17
12,17,22
16,21
Syntax error



      
Your Test Score: 0 / 0



Next Question: What is the ouptut in the following program main() {char c=-64; int i=-32 unsigned int u =-16; if(c>i) {printf("pass1,"); if(c printf("pass2"); else printf("Fail2"); } else printf("Fail1); if(i printf("pass2"); else printf("Fail2") }
Previous Question: What will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line number:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line number 15//
Related Questions:
  • The number when divided by a divisor leaves the remainder 65, when twice the number is divided by the same divisor 57. The divisor is :


  • Ben can have a piece of work done in 8 days, Joe can work three times faster than the Ben, Ram can work five times faster than Ben. How many days will they take to do the work together ?


  • The price of a T.V. set is decreased by 25% as a result of which the sale increased by 20%. What will be the effect on the total revenue of the shop ?


  • If x=y=2z and xyz=256 then what is the value of x?


  • In a class there are less than 500 students . when it is divided by 3 it gives a whole number. similarly when it is divided by 4,5 or 7 gives a whole number. find the no. of students in the class


  • Categories

    Aptitude Test Arithmetic Reasoning General Knowledge - India 
    General Knowledge Computer Basics Physics 
    Mathematics Biology Chemistry 
    English Botany Anatomy 
    Physiology Biochemistry Pharmacology 
    Community medicine Forensic medicine Microbiology 
    Pathology Paediatrics Ophthalmology 
    ENT Obstretics and Gynaecology Surgery 

    Submit Interview/Test Questions with Answers and make money from adsense revenue sharing program

    Want to prepare for an interview? Try our aptitude tests and standard interview questions first.


    Watch TV Channels
  • Watch Asianet TV online
  • Kairali TV in Internet
  • Surya TV online
  • Amritha TV Channel

  • Contact Us    Privacy Policy    Terms Of Use   

    SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.