main()

{

int i;

i = abc();

printf("%d",i);

}

abc()

{

_AX = 1000;

}

Answers were Sorted based on User's Feedback



main() { int i; i = abc(); printf("%d",i); ..

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

main() { int i; i = abc(); printf("%d",i); ..

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

Post New Answer

More C Code Interview Questions

main() { char p[ ]="%d\n"; p[1] = 'c'; printf(p,65); }

2 Answers  


write a program to count the number the same (letter/character foreg: 's') in a given sentence.

2 Answers  


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)); }

1 Answers   Satyam,


Cluster head selection in Wireless Sensor Network using C programming language.

0 Answers  


What is the problem with the following code segment? while ((fgets(receiving array,50,file_ptr)) != EOF) ;

1 Answers  






Write a procedure to implement highlight as a blinking operation

2 Answers  


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.

1 Answers  


main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }

3 Answers   GNITC,


void main() { char ch; for(ch=0;ch<=127;ch++) printf(“%c %d \n“, ch, ch); }

1 Answers  


write a c program to Reverse a given string using string function and also without string function

1 Answers  


void ( * abc( int, void ( *def) () ) ) ();

1 Answers  


Categories