Difference between malloc() and calloc() function?
No Answer is Posted For this Question
Be the First to Post Answer
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
#define FALSE -1 #define TRUE 1 #define NULL 0 main() { if(NULL) puts("NULL"); else if(FALSE) puts("TRUE"); else puts("FALSE"); }
Why are algorithms important in c program?
write a c program to find biggest of 3 number without relational operator?
how to write a program which adds two numbers without using semicolon in c
When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?
what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1
How can you find the day of the week given the date?
Explain how do you determine the length of a string value that was stored in a variable?
What are the types of data types and explain?
main() { clrscr(); } clrscr();
can we declare a variable in different scopes with different data types? answer in detail