Jobs in India
Search Jobs
Search Jobs
Advertisements

Aptitude - General by Mistral

Details of Aptitude - General by Mistral conducted by Mistral for job interview.
Advertisements
Mistral Solutions

C Section

1. What does the following program print?
#include
int sum,count;
void main(void)
{< BR> for(count=5;sum+=--count;)
printf("%d",sum);
}
a. The pgm goes to an infinite loop b. Prints 4791010974 c. Prints 4791001974
d. Prints 5802112085 e. Not sure

2. What is the output of the following program?
#include
void main(void)
{
int i;< BR> for(i=2;i