main()
{
char c;
int i = 456;
clrscr();
c = i;
printf("%d", c);
}
a. 456
b. -456
c. random number
d. none of the above
Answers were Sorted based on User's Feedback
void main() { int x,y=2,z; z=(z*=2)+(x=y=z); printf("%d",z); }
Write a c program to search an element in an array using recursion
main() { float i=1.5; switch(i) { case 1: printf("1"); case 2: printf("2"); default : printf("0"); } }
main() { int c = 5; printf("%d", main||c); } a. 1 b. 5 c. 0 d. none of the above
why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?
¦void main() ¦{ ¦int i=10,j; ¦ j=i+++i+++i; ¦printf("%d",j); ¦getch(); ¦} ¦ output:-30 but in same question if we write as- ¦void main() ¦{ ¦int i=10; ¦ int j=i+++i+++i; ¦printf("%d",j); ¦getch(); ¦} ¦ output:-33 why output is changed from 30 to 33. Can any body answer...
void main() { int i=5; printf("%d",i++ + ++i); }
void func1(int (*a)[10]) { printf("Ok it works"); } void func2(int a[][10]) { printf("Will this work?"); } main() { int a[10][10]; func1(a); func2(a); } a. Ok it works b. Will this work? c. Ok it worksWill this work? d. None of the above
How to count a sum, when the numbers are read from stdin and stored into a structure?
write a program to find out roots of quadratic equation "x=-b+-(b^2-4ac0^-1/2/2a"
write a c program to print magic square of order n when n>3 and n is odd?
write a program for area of circumference of shapes