void main()

{

char far *farther,*farthest;

printf("%d..%d",sizeof(farther),sizeof(farthest));

}

Answers were Sorted based on User's Feedback



void main() { char far *farther,*farthest; printf("%d..%d",si..

Answer / susie

Answer :

4..2

Explanation:

the second pointer is of char type and not a far pointer

Is This Answer Correct ?    5 Yes 1 No

void main() { char far *farther,*farthest; printf("%d..%d",si..

Answer / jatinder arora

1..1

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Code Interview Questions

main() { char *p = “ayqm”; printf(“%c”,++*(p++)); }

29 Answers   IBM, TCS, UGC NET, Wipro,


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,


Sorting entire link list using selection sort and insertion sort and calculating their time complexity

1 Answers   Infosys, Microsoft, NetApp,


why java is platform independent?

13 Answers   Wipro,


char *someFun1() { char temp[ ] = “string"; return temp; } char *someFun2() { char temp[ ] = {‘s’, ‘t’,’r’,’i’,’n’,’g’}; return temp; } int main() { puts(someFun1()); puts(someFun2()); }

2 Answers  






Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];

1 Answers  


int i=10; main() { extern int i; { int i=20; { const volatile unsigned i=30; printf("%d",i); } printf("%d",i); } printf("%d",i); }

1 Answers  


main() { char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

2 Answers  


#if something == 0 int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }

1 Answers  


There is a lucky draw held every day. if there is a winning number eg 1876,then all possible numbers like 1867,1687,1768 etc are the numbers that match irrespective of the position of the digit. Thus all these numbers qualify fr the lucky draw prize Assume there is no zero digit in any numbers. write a program to show all the possible winning numbers if a "winning number"is passed as an arguments to the function.

1 Answers   Nagarro,


main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }

1 Answers  


What is full form of PEPSI

0 Answers  


Categories