main()
{
int i=-1;
+i;
printf("i = %d, +i = %d \n",i,+i);
}
Answer / susie
Answer :
i = -1, +i = -1
Explanation:
Unary + is the only dummy operator in C. Where-ever it
comes you can just ignore it just because it has no effect
in the expressions (hence the name dummy operator).
| Is This Answer Correct ? | 20 Yes | 1 No |
#include<stdio.h> main() { FILE *ptr; char i; ptr=fopen("zzz.c","r"); while((i=fgetch(ptr))!=EOF) printf("%c",i); }
#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }
main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }
main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("\n %u %u ",j,k); }
write a c program to Reverse a given string using string function and also without string function
Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
What is wrong with the following code? int *foo() { int *s = malloc(sizeof(int)100); assert(s != NULL); return s; }
Given a list of numbers ( fixed list) Now given any other list, how can you efficiently find out if there is any element in the second list that is an element of the first list (fixed list)
3 Answers Disney, Google, ZS Associates,
main() { char *p; int *q; long *r; p=q=r=0; p++; q++; r++; printf("%p...%p...%p",p,q,r); }
main() { unsigned int i=10; while(i-->=0) printf("%u ",i); }
const int perplexed = 2; #define perplexed 3 main() { #ifdef perplexed #undef perplexed #define perplexed 4 #endif printf("%d",perplexed); } a. 0 b. 2 c. 4 d. none of the above
#define int char main() { int i=65; printf("sizeof(i)=%d",sizeof(i)); }