main()

{

int a[10];

printf("%d",*a+1-*a+3);

}



main() { int a[10]; printf("%d",*a+1-*a+3); }..

Answer / susie

Answer :

4

Explanation:

*a and -*a cancels out. The result is as simple as 1 + 3 = 4 !

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More C Code Interview Questions

How we print the table of 2 using for loop in c programing?

14 Answers   HCL, Wipro,


Find the largest number in a binary tree

7 Answers   Infosys,


main() { printf("%x",-1<<4); }

3 Answers   HCL, Sokrati, Zoho,


Design an implement of the inputs functions for event mode

0 Answers   Wipro,


#include<stdio.h> main() { int a[2][2][2] = { {10,2,3,4}, {5,6,7,8} }; int *p,*q; p=&a[2][2][2]; *q=***a; printf("%d----%d",*p,*q); }

1 Answers  






how to concatenate the two strings

1 Answers  


main() { int i=10; i=!i>14; Printf ("i=%d",i); }

1 Answers  


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

0 Answers   Mbarara University of Science and Technology,


#include<stdio.h> main() { FILE *ptr; char i; ptr=fopen("zzz.c","r"); while((i=fgetch(ptr))!=EOF) printf("%c",i); }

1 Answers  


#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }

1 Answers  


#define assert(cond) if(!(cond)) \ (fprintf(stderr, "assertion failed: %s, file %s, line %d \n",#cond,\ __FILE__,__LINE__), abort()) void main() { int i = 10; if(i==0) assert(i < 100); else printf("This statement becomes else for if in assert macro"); }

1 Answers  


How will u find whether a linked list has a loop or not?

8 Answers   Microsoft,


Categories