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 there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])
write a program to find out roots of quadratic equation "x=-b+-(b^2-4ac0^-1/2/2a"
Write a program to model an exploding firecracker in the xy plane using a particle system
1 o 1 1 0 1 0 1 0 1 1 0 1 0 1 how to design this function format in c-language ?
#include"math.h" void main() { printf("Hi everybody"); } if <stdio.h> will be included then this program will must compile, but as we know that when we include a header file in "" then any system defined function find its defination from all the directrives. So is this code of segment will compile? If no then why?
writte a c-programm to display smill paces
main() { printf("\nab"); printf("\bsi"); printf("\rha"); }
1. const char *a; 2. char* const a; 3. char const *a; -Differentiate the above declarations.
How to palindrom string in c language?
Write a program that find and print how many odd numbers in a binary tree
how to swap 3 nos without using temporary variable
main() { unsigned char i=0; for(;i>=0;i++) ; printf("%d\n",i); }