print numbers till we want without using loops or condition
statements like specifically(for,do while, while swiches,
if etc)!

Answer Posted / akshay babar

#include<stdio.h>
int print(int i)
{
if(i>0)
return print(printf("%d", i--));
else
return 1;
}
main()
{
print(100);
return 0;
}

Is This Answer Correct ?    2 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to palindrom string in c language?

9793


What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql

2627


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

2254


Write a routine to implement the polymarker function

4581


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 ?

2500






can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail

2564


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

3073


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

3274


What is full form of PEPSI

2118


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

3280


how to programme using switch statements and fuctions, a programme that will output two even numbers, two odd numbers and two prime numbers of the users chioce.

2351


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

3126


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

3384


Sir... please give some important coding questions asked by product companies..

2021


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 ??

2131