void pascal f(int i,int j,int k)

{

printf(“%d %d %d”,i, j, k);

}

void cdecl f(int i,int j,int k)

{

printf(“%d %d %d”,i, j, k);

}

main()

{

int i=10;

f(i++,i++,i++);

printf(" %d\n",i);

i=10;

f(i++,i++,i++);

printf(" %d",i);

}



void pascal f(int i,int j,int k) { printf(“%d %d %d”,i, j, k); } ..

Answer / susie

Answer :

10 11 12 13

12 11 10 13

Explanation:

Pascal argument passing mechanism forces the arguments
to be called from left to right. cdecl is the normal C
argument passing mechanism where the arguments are passed
from right to left.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More C Code Interview Questions

Display the time of the system and display the right time of the other country

1 Answers  


Under linux environment can u please provide a c code for computing sum of series 1-2+3-4+5......n terms and -1+2-3+4-5...n terms..

2 Answers  


main() { float me = 1.1; double you = 1.1; if(me==you) printf("I love U"); else printf("I hate U"); }

1 Answers  


main() { int a[10]; printf("%d",*a+1-*a+3); }

1 Answers  


why nlogn is the lower limit of any sort algorithm?

1 Answers  


void main() { int i=5; printf("%d",i++ + ++i); }

3 Answers  


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

2 Answers  


Write a single line c expression to delete a,b,c from aabbcc

2 Answers   Microsoft,


int a=1; printf("%d %d %d",a++,a++,a); need o/p in 'c' and what explanation too

1 Answers  


Given an array of size N in which every number is between 1 and N, determine if there are any duplicates in it. You are allowed to destroy the array if you like.

21 Answers   ABC, eBay, Goldman Sachs, Google, HUP, Microsoft, TATA,


what is the code of the output of print the 10 fibonacci number series

2 Answers  


Find your day from your DOB?

15 Answers   Accenture, Microsoft,


Categories