Huawei
Company
Programming
Definition
#include
main(){
int a,b,c,i;
printf("%d",scanf("%d %d %d",&a,&b,&c));
getch();
}
Read Solution (Total 16)
-
- answr::: 3
scanf() returns no of input values.
hence here a ,b,c so 3 - 10 years agoHelpfull: Yes(12) No(0)
- I got blank screen, I have runned the progrm
- 10 years agoHelpfull: Yes(5) No(2)
- miss Jayanti : please enter the values when you get blank screen
- 10 years agoHelpfull: Yes(4) No(0)
- ans=3
scanf will return the number of items read,that will printed by printf.Here 3 variables are red(a.b.c) . So ans=3 - 10 years agoHelpfull: Yes(3) No(0)
- -1 i.e. garbage value..
- 10 years agoHelpfull: Yes(0) No(7)
- scanf() returns no of input values
so output is 3 - 10 years agoHelpfull: Yes(0) No(0)
- -1 will be right answer
- 10 years agoHelpfull: Yes(0) No(10)
- output is 3
- 10 years agoHelpfull: Yes(0) No(0)
- NO OUTPUT BLANK SCREEN I DID RUN THE PROGRAM
- 10 years agoHelpfull: Yes(0) No(2)
- Is this models coming in huawei ?any idea guys................
- 9 years agoHelpfull: Yes(0) No(0)
- scanf returns 0 on successful termination
printf returns number of characters printed - 9 years agoHelpfull: Yes(0) No(0)
- #include
main(){
int a,b,c,i;
printf("%d",scanf("%d %d %d",&a,&b,&c));
}
input>3integer
output>3 - 9 years agoHelpfull: Yes(0) No(0)
- i have run the program, by changing the getch(); to return 0; and the and Ans: -1 that's garbage value
- 9 years agoHelpfull: Yes(0) No(1)
- 1 is the answer because scanf returns 1 only
- 9 years agoHelpfull: Yes(0) No(0)
- 8 6 3 because in stack top first the value of c stored then b and then a.
- 8 years agoHelpfull: Yes(0) No(0)
- Answer : 3
- 8 years agoHelpfull: Yes(0) No(0)
Huawei Other Question