main()
{
int k=1;
printf("%d==1 is ""%s",k,k==1?"TRUE":"FALSE");
}
Answer / susie
Answer :
1==1 is TRUE
Explanation:
When two strings are placed together (or separated by
white-space) they are concatenated (this is called as
"stringization" operation). So the string is as if it is
given as "%d==1 is %s". The conditional operator( ?: )
evaluates to "TRUE".
| Is This Answer Correct ? | 12 Yes | 1 No |
main() { int i=400,j=300; printf("%d..%d"); }
main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("\n %u %u ",j,k); }
main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
Give a very good method to count the number of ones in a 32 bit number. (caution: looping through testing each bit is not a solution)
#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"); }
main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) ); }
How to reverse a String without using C functions ?
33 Answers Matrix, TCS, Wipro,
What is the subtle error in the following code segment? void fun(int n, int arr[]) { int *p=0; int i=0; while(i++<n) p = &arr[i]; *p = 0; }
how can i search an element in an array
2 Answers CTS, Microsoft, ViPrak,
main() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }