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 |
Explain two-dimensional array.
Name the language in which the compiler of "c" in written?
Define circular linked list.
How to print %d in output
when will be evaluated as true/ if(x==x==x) a) x=1; b) x=0; c) x=-1; d) none
Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.
explain how do you use macro?
What are local and global variables?
how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y
What is an expression?
In a switch statement, explain what will happen if a break statement is omitted?
Explain is it better to bitshift a value than to multiply by 2?