C
Programming and Technical
Programming
Output
void main()
{
int fun();
int i;
i=fun();
printf("%d",i);
}
int fun()
{
_AX=1234;
}
Read Solution (Total 9)
-
- It will print 1234. As it take the value of i from accumulator.
- 8 years agoHelpfull: Yes(3) No(0)
- _AX is undeclared . so the output is an error.
- 8 years agoHelpfull: Yes(3) No(0)
- It depends on compiler. if we are using turbo c , it will print 1234. In dev , it will give error saying "_AX is undeclared". It accepts in turbo c as it takes as (_ax)auxiliary variable.
- 7 years agoHelpfull: Yes(1) No(0)
- here _AX is undeclared so it is error.if it has declared then output will be zero
- 8 years agoHelpfull: Yes(0) No(3)
- it returns 1 as default
- 8 years agoHelpfull: Yes(0) No(1)
- same value print
- 8 years agoHelpfull: Yes(0) No(0)
- it prints 1234 as output
- 8 years agoHelpfull: Yes(0) No(0)
- it print the value 1234
- 7 years agoHelpfull: Yes(0) No(0)
- It will show error because in program they have not declared _AX . so you won't get any value.
- 7 years agoHelpfull: Yes(0) No(0)
C Other Question