mockers
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Guess Output - Bansal Sir

2 posters

Go down

Guess Output - Bansal Sir Empty Guess Output - Bansal Sir

Post  ballu Sun Feb 01, 2009 9:25 pm

What would be the output of this..
Code:
#include<stdio.h>

int main()
{
int a;
char c;
a=1;
while(a<5)
{
scanf("%d",&c);
printf("%d",a);
a++;
}
}
Explain the ouput for the cases when c entered is a
1)digit
2)character
3)symbol like +,-,/ etc
ballu
ballu

Posts : 58
Join date : 2009-02-01

Back to top Go down

Guess Output - Bansal Sir Empty Re: Guess Output - Bansal Sir

Post  Admin Fri Mar 06, 2009 6:48 pm

can u please explain it?

Admin
Admin

Posts : 47
Join date : 2009-01-29

https://mockers.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum