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 |
Is it possible to print a name without using commas, double quotes,semi-colons?
write a program in c language to get the value of arroy keys pressed and display the message which arrow key is pressed?
print a semicolon using Cprogram without using a semicolon any where in the C code in ur program!!
35 Answers Tata Elxsi, TCS, VI eTrans,
main( ) { int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(ā%u %u %u %d \nā,a,*a,**a,***a); printf(ā%u %u %u %d \nā,a+1,*a+1,**a+1,***a+1); }
main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }
Who could write how to find a prime number in dynamic array?
main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); }
# include <stdio.h> int one_d[]={1,2,3}; main() { int *ptr; ptr=one_d; ptr+=3; printf("%d",*ptr); }
Is the following code legal? typedef struct a { int x; aType *b; }aType
What are the following notations of defining functions known as? i. int abc(int a,float b) { /* some code */ } ii. int abc(a,b) int a; float b; { /* some code*/ }
prog. to produce 1 2 3 4 5 6 7 8 9 10
1 o 1 1 0 1 0 1 0 1 1 0 1 0 1 how to design this function format in c-language ?