Write a code to generate a series where the next element is the sum of last k terms.
No Answer is Posted For this Question
Be the First to Post Answer
Write code for finding depth of tree
Where are some collections of useful code fragments and examples?
What is the use of a conditional inclusion statement in C?
what is the output of the program and explain why?? #include<stdio.h> void main ( ) { int k=4,j=0: switch (k) { case 3; j=300; case 4: j=400: case 5: j=500; } printf (ā%d\nā,j); }
Explain how can I right-justify a string?
void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }
what is the defrenece between structure and union
A stack can be implemented only using array?if not what is used?
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
In which mode we open the file for read,write and append also in c ? a)W b)w+ c)r+ d)a
What is the difference between fread buffer() and fwrite buffer()?
What is infinite loop?