Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Print the foll in C...eg when n=5 the o/p must b
+ +
+ + + +
+ + + + +
+ + + +
+ +



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

Post New Answer

More C Interview Questions

What is meant by initialization and how we initialize a variable?

0 Answers  


When should structures be passed by values or by references?

0 Answers   Adobe,


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

0 Answers  


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

1 Answers   TCS,


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); }

1 Answers   CodeChef,


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

0 Answers  


What is variable and explain rules to declare variable in c?

0 Answers  


how to use enum datatype?Please explain me?

3 Answers   Excel,


Is calloc better than malloc?

0 Answers  


how the compiler treats any volatile variable?Explain with example.

1 Answers   Tata Elxsi,


What is "Hungarian Notation"?

0 Answers   Celstream,


Write a code to generate a series where the next element is the sum of last k terms.

0 Answers   Aspiring Minds,


Categories