How to create struct variables?
No Answer is Posted For this Question
Be the First to Post Answer
In the following control structure which is faster? 1.Switch 2.If-else and which consumes more memory?
int n=1; while(1) { switch(n) { case 1:printf("a"); n++; continue; case 2:printf("b"); n++; continue; default : printf("c"); break; } break; }
Determine if a number is a power of 2 at O(1).
How important is structure in life?
What is typedef example?
int i=~0; uint j=(uint)i; j++; printf(“%d”,j);
wat are the two methods for swapping two numbers without using temp variable??
You have an array of n integers, randomly ordered with value 1 to n-1.The array is such that there is only one and one value occurred twice. How will you find this number?
What is Generic pointer? What is the purpose of Generic pointer? Where it is used?
Study the Following Points: a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static 1. Which of the Following Statements are true w.r.t Bit- Fields A)a,b&c B)Only a & b C)Only c D)All
#define MAX(x,y) (x) > (y) ? (x) : (y) main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i,j,k); } what will the values of i , j and k? }
14 Answers CDAC, GATE, NDS, TCS,
Given an array of numbers, except for one number all the others occur twice. Give an algorithm to find that number which occurs only once in the array.