Differentiate between new and malloc(), delete and free() ?
No Answer is Posted For this Question
Be the First to Post Answer
Write a function that accepts a sentence as a parameter, and returns the same with each of its words reversed. The returned sentence should have 1 blank space between each pair of words. Demonstrate the usage of this function from a main program. Example: Parameter: “jack and jill went up a hill” Return Value: “kcaj dna llij tnew pu a llih”
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
2)#include<iostream.h> main() { printf("Hello World"); } the program prints Hello World without changing main() the o/p should be intialisation Hello World Desruct the changes should be a)iostream operator<<(iostream os, char*s) os<<'intialisation'<<(Hello World)<<Destruct b) c) d)none of the above
What is the use of structure padding in c?
What does s c mean in text?
write a function which accept two numbers from main() and interchange them using pointers?
What is a memory leak in structures? How can we rectify that?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
Are there constructors in c?
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
how logic is used