program for following output using for loop?
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5
Answer Posted / subasaranya
1 2 3 4 5
2 3 4 5
3 4 5
4 5
5
| Is This Answer Correct ? | 2 Yes | 7 No |
Post New Answer View All Answers
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
Explain how can I convert a number to a string?
Can we assign integer value to char in c?
What is %s and %d in c?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
Are c and c++ the same?
When we use void main and int main?
What is wrong in this statement? scanf(ā%dā,whatnumber);
What is a global variable in c?
Explain null pointer.
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
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); }
When would you use a pointer to a function?
What is the difference between mpi and openmp?
Why we write conio h in c?