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
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What is a stream?
What's the difference between constant char *p and char * constant p?
Is there a built-in function in C that can be used for sorting data?
What does emoji p mean?
What are the types of data files?
Write a program to print “hello world” without using semicolon?
Why is sizeof () an operator and not a function?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What are called c variables?
Explain what is the concatenation operator?
How are variables declared in c?
Define and explain about ! Operator?
How do you generate random numbers in C?
Describe dynamic data structure in c programming language?