#define SQR(x) x * x
main()
{
printf("%d", 225/SQR(15));
}
a. 1
b. 225
c. 15
d. none of the above
Answers were Sorted based on User's Feedback
Answer / anurag
the macro replacement will change printf to:
printf("%d", 225/15*15);
now, / and * have same priority so
225/15*15 = 15*15 = 225.
So answer is 225
Is This Answer Correct ? | 24 Yes | 2 No |
to remove the repeated cahracter from the given caracter array. i.e.., if the input is SSAD output should of SAD
void main() { static int i; while(i<=10) (i>2)?i++:i--; printf(ā%dā, i); }
Given a list of numbers ( fixed list) Now given any other list, how can you efficiently find out if there is any element in the second list that is an element of the first list (fixed list)
3 Answers Disney, Google, ZS Associates,
Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])
given integer number,write a program that displays the number as follows: First line :all digits second line : all except the first digit . . . . Last line : the last digit
What is your nationality?
#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }
prog. to produce 1 2 3 4 5 6 7 8 9 10
program to Reverse a linked list
12 Answers Aricent, Microsoft, Ness Technologies,
how to delete an element in an array
Write a routine to implement the polymarker function
What is "far" and "near" pointers in "c"...?