Print the foll in C...eg when n=5 the o/p must b
+ +
+ + + +
+ + + + +
+ + + +
+ +
Answer / ataraxic
char *m[] = { "+ +", "++ ++", "+++++" };
for (i=1; i <= 5; i++)
printf("%s\n", m[5%i]);
Is This Answer Correct ? | 1 Yes | 4 No |
What is the diffences between Windows XP and Windows Visa
Hi Every one......... Please Any body give me the answer for my question. Is it possible to print the word "PRINT F", without using printf() statement in C-Language.
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300,200,100
Why do we use static in c?
Write a program that his output 1 12 123
main() { int x=5,y=10,z=0; x=x++ + y++; y=y++ + ++x; z=x++ + ++y; printf("%d%d%d\n",x,y,z); }
what is the need for main function in c?
What are enums in c?
What is identifier in c?
How can I invoke another program or command and trap its output?
is compiler do read the data line by line or not. ??
6 Answers LG Soft, Satyam, Tech Mahindra,
Can we replace the struct function in tree syntax with a union?