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);
}
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 |
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
main() { static char names[5][20]={"pascal","ada","cobol","fortran","perl"}; int i; char *t; t=names[3]; names[3]=names[4]; names[4]=t; for (i=0;i<=4;i++) printf("%s",names[i]); }
What is the output of the program given below main() { signed char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }
void main() { int i=10, j=2; int *ip= &i, *jp = &j; int k = *ip/*jp; printf(“%d”,k); }
what is variable length argument list?
#include<stdio.h> main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }
main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); }
main() { int i=5; printf("%d",++i++); }
main() { unsigned int i=65000; while(i++!=0); printf("%d",i); }
print numbers till we want without using loops or condition statements like specifically(for,do while, while swiches, if etc)!
Link list in reverse order.