main()
{
signed int bit=512, i=5;
for(;i;i--)
{
printf("%d\n", bit = (bit >> (i - (i -1))));
}
}
a. 512, 256, 128, 64, 32
b. 256, 128, 64, 32, 16
c. 128, 64, 32, 16, 8
d. 64, 32, 16, 8, 4
Answers were Sorted based on User's Feedback
Program to find the largest sum of contiguous integers in the array. O(n)
What is "far" and "near" pointers in "c"...?
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30
main() { clrscr(); } clrscr();
Finding a number multiplication of 8 with out using arithmetic operator
Write a program to implement the motion of a bouncing ball using a downward gravitational force and a ground-plane friction force. Initially the ball is to be projected in to space with a given velocity vector
main() { static char names[5][20]={"pascal","ada","cobol","fortran","perl"}; int i; char *t; t=names[3]; names[3]=names[4]; names[4]=t; for (i=0;i<=4;i++) printf("%s",names[i]); }
Is the following statement a declaration/definition. Find what does it mean? int (*x)[10];
program to Reverse a linked list
12 Answers Aricent, Microsoft, Ness Technologies,
can u give me the c codings for converting a string into the hexa decimal form......
Write a prog to accept a given string in any order and flash error if any of the character is different. For example : If abc is the input then abc, bca, cba, cab bac are acceptable, but aac or bcd are unacceptable.
#define f(g,g2) g##g2 main() { int var12=100; printf("%d",f(var,12)); }