main()
{
int i;
i = abc();
printf("%d",i);
}
abc()
{
_AX = 1000;
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
1000
Explanation:
Normally the return value from the function is through the
information from the accumulator. Here _AH is the pseudo
global variable denoting the accumulator. Hence, the value
of the accumulator is set 1000 so the function returns value
1000.
Is This Answer Correct ? | 21 Yes | 12 No |
Answer / ashish dayama
gives error b'coz _AX is not declared in function...this will give error untll we take _AX as int variable in abc().....:)
Is This Answer Correct ? | 10 Yes | 5 No |
main() { char p[ ]="%d\n"; p[1] = 'c'; printf(p,65); }
write a program to count the number the same (letter/character foreg: 's') in a given sentence.
func(a,b) int a,b; { return( a= (a==b) ); } main() { int process(),func(); printf("The value of process is %d !\n ",process(func,3,6)); } process(pf,val1,val2) int (*pf) (); int val1,val2; { return((*pf) (val1,val2)); }
Cluster head selection in Wireless Sensor Network using C programming language.
What is the problem with the following code segment? while ((fgets(receiving array,50,file_ptr)) != EOF) ;
Write a procedure to implement highlight as a blinking operation
Write out a function that prints out all the permutations of a string. For example, abc would give you abc, acb, bac, bca, cab, cba. You can assume that all the characters will be unique.
5 Answers IITR, Microsoft, Nike,
Ramesh’s basic salary is input through the keyboard. His dearness allowance is 40% of basic salary, and house rent allowance is 20% of basic salary. Write a program to calculate his gross salary.
main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
void main() { char ch; for(ch=0;ch<=127;ch++) printf(“%c %d \n“, ch, ch); }
write a c program to Reverse a given string using string function and also without string function
void ( * abc( int, void ( *def) () ) ) ();