program for following output using for loop?
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5

Answer Posted / dhruv sharma rkdf

hello Jayaraj.s..........
your program will give the following compilation error:
"getch should have a prototype"

you need to include "conio.h" header file...

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function

750


What does s c mean in text?

601


where are auto variables stored? What are the characteristics of an auto variable?

582


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

810


Tell me the use of bit field in c language?

622






What is the use of #define preprocessor in c?

607


What is a function in c?

567


List a few unconditional control statement in c.

555


What is function prototype?

605


What is the size of array float a(10)?

647


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1588


What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25

1487


Compare and contrast compilers from interpreters.

675


What is pre-emptive data structure and explain it with example?

3203


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

650