main()
{
{
unsigned int bit=256;
printf("%d", bit);
}
{
unsigned int bit=512;
printf("%d", bit);
}
}
a. 256, 256
b. 512, 512
c. 256, 512
d. Compile error
Answer / guest
256, 512, becoz these r different blocks, so declaration
allowed
| Is This Answer Correct ? | 21 Yes | 0 No |
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.
Extend the sutherland-hodgman clipping algorithm to clip three-dimensional planes against a regular paralleiepiped
What are segment and offset addresses?
main() { int *j; { int i=10; j=&i; } printf("%d",*j); }
main() { printf("%x",-1<<4); }
void main() { if(~0 == (unsigned int)-1) printf(“You can answer this if you know how values are represented in memory”); }
How do I write a program to print proper subset of given string . Eg :input: abc output:{},{a},{b},{c},{a,b},{a,c},{b,c}, {a,b,c}.I desperately need this program please mail me to saravana6m@gmail.com
Is it possible to type a name in command line without ant quotes?
main() { int i, j, *p; i = 25; j = 100; p = &i; // Address of i is assigned to pointer p printf("%f", i/(*p) ); // i is divided by pointer p } a. Runtime error. b. 1.00000 c. Compile error d. 0.00000
why nlogn is the lower limit of any sort algorithm?
void main() { int i=i++,j=j++,k=k++; printf(“%d%d%d”,i,j,k); }
Give a very good method to count the number of ones in a 32 bit number. (caution: looping through testing each bit is not a solution)