please give code for this 1 2 4 7 11 16
Answer Posted / aditya
#include<stdio.h>
int main()
{
int fir=1,nex=0;
for(nex=0;nex<6;nex++)
{fir=fir+nex;
printf("%d ",fir);
}}
| Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
Why static is used in c?
Can variables be declared anywhere in c?
Explain what is a const pointer?
What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
What are the advantages of external class?
Is fortran still used in 2018?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Define macros.
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
What is structure pointer in c?
Is it better to use a macro or a function?
Why does everyone say not to use scanf? What should I use instead?
Can an array be an Ivalue?
What is a nested loop?