progrem to generate the following series
1
12
123
1234
12345
Answer Posted / f.hnayan
#include<stdio.h>
#include<conio.h>
main()
{
int a,b;
for(a=0;a<=4;a++)
{
for(b=1;b<=(a+1);b++)
{
printf("%d\t",b);
}
printf("\n");
}
return 0;
}
| Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
In c language can we compile a program without main() function?
What is malloc() function?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
difference between object file and executable file
How many parameters should a function have?
In a switch statement, explain what will happen if a break statement is omitted?
Explain what is the benefit of using an enum rather than a #define constant?
Explain how to reverse singly link list.
What is the difference between array and pointer?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
What does 3 periods mean in texting?
What do you mean by dynamic memory allocation in c? What functions are used?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
Explain how do you search data in a data file using random access method?
What is meant by 'bit masking'?