main()

{

int i=10;

void pascal f(int,int,int);

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

printf(" %d",i);

}

void pascal f(integer :i,integer:j,integer :k)

{

write(i,j,k);

}



main() { int i=10; void pascal f(int,int,int); f(i++,i++,i++); printf("..

Answer / susie

Answer :

Compiler error: unknown type integer

Compiler error: undeclared function write

Explanation:

Pascal keyword doesn’t mean that pascal code can be
used. It means that the function follows Pascal argument
passing mechanism in calling the functions.

Is This Answer Correct ?    3 Yes 5 No

Post New Answer

More C Code Interview Questions

main() { int a=2,*f1,*f2; f1=f2=&a; *f2+=*f2+=a+=2.5; printf("\n%d %d %d",a,*f1,*f2); }

6 Answers  


void main() { void *v; int integer=2; int *i=&integer; v=i; printf("%d",(int*)*v); }

1 Answers   Honeywell,


Give a one-line C expression to test whether a number is a power of 2.

10 Answers   Microsoft,


main() { char a[4]="HELL"; printf("%s",a); }

3 Answers   Wipro,


void main () { int x = 10; printf ("x = %d, y = %d", x,--x++); } a. 10, 10 b. 10, 9 c. 10, 11 d. none of the above

2 Answers   HCL,






Derive expression for converting RGB color parameters to HSV values

1 Answers  


main() { char *a = "Hello "; char *b = "World"; clrscr(); printf("%s", strcpy(a,b)); } a. “Hello” b. “Hello World” c. “HelloWorld” d. None of the above

4 Answers   Corporate Society, HCL,


int main() { int x=10; printf("x=%d, count of earlier print=%d", x,printf("x=%d, y=%d",x,--x)); getch(); } ================================================== returns error>> ld returned 1 exit status =================================================== Does it have something to do with printf() inside another printf().

2 Answers  


main() { register int a=2; printf("Address of a = %d",&a); printf("Value of a = %d",a); }

3 Answers  


write a program in c to merge two array

2 Answers  


how to concatenate the two strings

1 Answers  


main() { char not; not=!2; printf("%d",not); }

1 Answers  


Categories