main()

{

int x=5;

clrscr();

for(;x<= 0;x--)

{

printf("x=%d ", x--);

}

}

a. 5, 3, 1

b. 5, 2, 1,

c. 5, 3, 1, -1, 3

d. –3, -1, 1, 3, 5

Answer Posted / purushotam111

Just change the operator in for >= instead of <=
then our answer is 5 , 3 , 1

Is This Answer Correct ?    16 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30

2219


To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']

493


Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??

1770


could you please send the program code for multiplying sparse matrix in c????

3067


What is full form of PEPSI

1865






Cluster head selection in Wireless Sensor Network using C programming language.

3107


#include int main(void) { int a=4, b=2; a=b<>2 ; printf("%d",a); return 0; }

1067


how to test pierrot divisor

2256


How can you relate the function with the structure? Explain with an appropriate example.

2915


Develop a routine to reflect an object about an arbitrarily selected plane

2994


3) Int Matrix of certain size was given, We had few valu= es in it like this. =97=97=97=97=97=97=97=97=97=97=97 1 = | 4 | | 5 | &= nbsp; | 45 =97=97=97=97=97=97=97=97=97=97=97 &n= bsp; | 3 | 3 | 5 | = | 4 =97=97=97=97=97=97=97=97=97=97=97 34 |&nbs= p; 3 | 3 | | 12 | &= nbsp; =97=97=97=97=97=97=97=97=97=97=97 3 | &nbs= p; | 3 | 4 | = | 3 =97=97=97=97=97=97=97=97=97=97=97 3 | = ; | | | = ; 3 | =97=97=97=97=97=97=97=97=97=97=97 &= nbsp; | | 4 | = ; | 4 | 3 We w= ere supposed to move back all the spaces in it at the end. Note: = If implemented this prog using recursion, would get higher preference.

3317


write a simple calculator c program to perform addition, subtraction, mul and div.

3143


What is data _null_? ,Explain with code when u need to use it in data step programming ?

2820


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2258


Write a program to model an exploding firecracker in the xy plane using a particle system

3686