C Output Questions
- Find Error/Output in follwing code:
- Infinite Time
- 11 Times
- 0 Time
- 10 Times
How many times "Placement Question" will print.
int main()
{
int x;
for(x=-1; x<=10; x++)
{
if(x < 5)
continue;
else
break;
printf("Placement Question");
}
return 0;
}
Added By : Nikhil
- Find Error/Output in follwing code:
- 4160
- 844
- 3284
- None of the above
int main()
{
printf("%d%d%d", sizeof(3.14f), sizeof(3.14l));
}
Added By : Satyam
- Find Error/Output in follwing code:
- 36 64
- 35 62
- 36 63
- 30 28
int main()
{
int a = 10, b = 25;
a = b++ + a++;
b = ++b + ++a;
printf("%d %d n", a, b);
}
Added By : Abhinav
- Find Error/Output in follwing code:
- Network
- N
- Garbage value
- Compilation error
int main()
{
char arr[7]="Network";
printf("%s", arr);
return 0;
}
Added By : Shubham
- Find Error/Output in follwing code:
- 38 753
- 75 538
- 538 38
- 0 753
int main()
{
int x = 7538;
printf("%d %dn", x % 100, x / 10);
}
Added By : Shashank
- Find Error/Output in follwing code:
- 55 92
- 56 93
- 57 94
- None of the above
int main ()
{
int x = 20, y = 35;
x = y++ + x++;
y = ++y + ++x;
printf ("%d %d n", x, y);
}
Added By : Nikhil
- Find Error/Output in follwing code:
- 10 10
- 11 11
- 11 12
- 12 12
void fn()
{
static int i = 10;
printf("%d ", ++i);
}
int main()
{
fn();
fn();
}
Added By : Rajiv
- Find Error/Output in follwing code:
- 24 39 63
- 39 24 63
- 24 39 45
- 39 24 45
int main ()
{
int x = 24, y = 39, z = 45;
z = x + y;
y = z - y;
x = z - y;
printf ("n%d %d %d", x, y, z);
}
Added By : Akhil
Also Exercise
Post Your Question
Social Sharing
Search
Articles
Recently Added Jobs
Rajasthan High Court - Jodhpur Recruitment 2017 for Civil Judges
Last Date: 21 December, 2017
Last Date: 21 December, 2017
WBSEDCL Recruitment - 2017 for Office Executive
Last Date: 16 May, 2017
Last Date: 16 May, 2017
RECRUITMENT OF PROBATIONARY OFFICERS IN STATE BANK OF INDIA
Last Date: 06 March, 2017
Last Date: 06 March, 2017
UPSC Combined Medical Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015
UPSC Engineering Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015