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() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
plz send me all data structure related programs
main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }
Finding a number multiplication of 8 with out using arithmetic operator
void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }
String copy logic in one line.
pls anyone can help me to write a code to print the values in words for any value.Example:1034 to print as "one thousand and thirty four only"
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,
#include <stdio.h> #define a 10 main() { #define a 50 printf("%d",a); }
main() { void swap(); int x=10,y=8; swap(&x,&y); printf("x=%d y=%d",x,y); } void swap(int *a, int *b) { *a ^= *b, *b ^= *a, *a ^= *b; }
Write a program using one dimensional array to assign values and then display it on the screen. Use the formula a[i]=i*10 to assign value to an element.
1 Answers Samar State University,