I didn't count the ducks that I saw in line,
but I do remember that one duck was in front of two ducks,
another duck behind two ducks. How many ducks did I see?
Answers were Sorted based on User's Feedback
What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these
how to use enum datatype?Please explain me?
what does data structure mean?
What is self-referential structure in c programming?
How can I open a file so that other programs can update it at the same time?
How can I read a binary data file properly?
What are the string functions? List some string functions available in c.
Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }
if the total selling price of 15 items and the total profit earned on them is input through the keyboard, write a program to find the cost price of one of the item
Write a program which returns the first non repetitive character in the string?
Explain demand paging.
write a program to compare 2 numbers without using logical operators?