int *ptr = (int *)malloc(100*(sizeof(int)));ptr++;free(ptr);
Latest Answer: it will allocate 200 bytes of memory and returns pointer to the first location...correct me if iam wrongregardsumesh ...
Given specification: if (x >2) then print 2*x; else print 2+x, where x is an integer variable. From the perspective of blackbox testing, discuss whether the following implementation is faulty if (x>=2) print (2*x) ;else print (2+x);
1) If either operand of an arithmetic operator is unsigned long, the other operand is promoted to unsigned long. 2) If either operand of an arithmetic operator is unsigned int, the other operand
Latest Answer: Here we cant say the default promotion without knowing the other operand.But if two operands are of different datatypes and the arithmetic operation is performed on these operands the compiler allocates the memory of higher datatype for the resulting ...
Latest Answer: #include#includevoid main(){ int a,i;clrscr();printf( " enter the number");scanf("%d",&a);for(i=a;i
Latest Answer: ++i executes faster, since both i++ and ++i takes one cycle. i++ creates a temporary variable and then put the incremented value in it but ++i directly increments the value. ...
Should the code below keep grabbing more resources as a variable is declared inside a while loop?while(1){int i = 10;while(--i);}How does a while loop exactly work? can any explain me the same?
Latest Answer: Max heap is heap with max in root node, Min heap has min in root node. ...
What will be the output of the following question#includemain(){int i=90,k,l;k=i%-3;l=-i%3;printf("%d",k+l);}
Zero
What is the output of the following program#includevoid main(){printf("%d%d",sizeof('a'),sizeof("a"));
Write a program to count the occurrence of following C keywords in a file and calculate the sum? 1.int 2.char 3.static 4.struct 5.union 6.return
View page << Previous 5 6 7 8 [9] 10 11 12 Next >>

Go Top