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 y; scanf("%d",&y); // input given is 2000 if( (y%4==0 && y%100 != 0) || y%100 == 0 ) printf("%d is a leap year"); else printf("%d is not a leap year"); }

1 Answers  


main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }

1 Answers  


write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .

2 Answers  


main() { if ((1||0) && (0||1)) { printf("OK I am done."); } else { printf("OK I am gone."); } } a. OK I am done b. OK I am gone c. compile error d. none of the above

5 Answers   HCL,


create a login program that ask username and password. if you input username or password 3 times wrong, the program will terminate else the program will prompt a message "congratulations"

2 Answers  






program to find magic aquare using array

4 Answers   HCL,


How will you print % character? a. printf(“\%”) b. printf(“\\%”) c. printf(“%%”) d. printf(“\%%”)

4 Answers   HCL,


main() { int i=10,j=20; j = i, j?(i,j)?i:j:j; printf("%d %d",i,j); }

2 Answers   Adobe, CSC,


What are segment and offset addresses?

2 Answers   Infosys,


How to reverse a String without using C functions ?

33 Answers   Matrix, TCS, Wipro,


main( ) { void *vp; char ch = ‘g’, *cp = “goofy”; int j = 20; vp = &ch; printf(“%c”, *(char *)vp); vp = &j; printf(“%d”,*(int *)vp); vp = cp; printf(“%s”,(char *)vp + 3); }

1 Answers  


Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it.

9 Answers   Microsoft,


Categories