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

Post New Answer

More C Interview Questions

what is bitwise operator?

1 Answers   IBM,


what is the c source code for the below output? 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1

0 Answers  


Is exit(status) truly equivalent to returning the same status from main?

0 Answers  


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

0 Answers   XYZ,


What is union and structure in c?

0 Answers  






Why do we use & in c?

0 Answers  


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

0 Answers  


write a program wch produces its own source code aas its output?

1 Answers   IonIdea,


Tell me what are bitwise shift operators?

0 Answers  


main() { FILE *fs; char c[10]; fs = fopen(“source.txt”, ”r”); /* source.txt exists and contains “Vector Institute” */ fseek(fs,0,SEEK_END); fseek(fs,-3L,SEEK_CUR); fgets(c,5,fs); puts(c); }

1 Answers   Vector,


why in C,C++'s int size is 2 byte and .net(c#) int Size is 4 byte?

2 Answers  


What are the valid places to have keyword “break”?

0 Answers  


Categories