Write a pro-gramme to determine whether the number is even or odd?
Answer / azad sable, chiplun
void main();
{
int n;
clrscr();
printf("enter any number");
scanf("%d",&n);
if(n%2==0)
printf("\nthe number is even");
else
printf("\nthe number is odd");
}
getch();
}
| Is This Answer Correct ? | 5 Yes | 0 No |
Can we change the value of #define in c?
a c code by using memory allocation for add ,multiply of sprase matrixes
what r the cpu registers r ther?
What is Bitwise Operator and how it works?
How many types of arrays are there in c?
Write a program to print all permutations of a given string.
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
1,4,8,13,21,30,36,45,54,63,73,?,?.
10 Answers AMB, Franklin Templeton,
Evaluate the following: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); 1) 10 2) 11 3) 1
What is function prototype?
N O S I E R + A S T R A L ---------------- 7 2 5 6 1 3
What is NULL pointer?