explain the result of the program in C [closed]Calling a Haskell MD5 hashing function from C, and returning...

Do I have a twin with permutated remainders?

Did Shadowfax go to Valinor?

Question relative to pads for capacitors - high frequency

Fully-Firstable Anagram Sets

dbcc cleantable batch size explanation

Operational amplifier as comparator at high frequency

Why is 150k or 200k jobs considered good when there's 300k+ births a month?

How can bays and straits be determined in a procedurally generated map?

meaning of に in 本当に?

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

Are astronomers waiting to see something in an image from a gravitational lens that they've already seen in an adjacent image?

Could gravitational lensing be used to protect a spaceship from a laser?

definition of observer and time measured by different observers in general relativity

How old can references or sources in a thesis be?

Can the number of solutions to a system of PDEs be bounded using the characteristic variety?

Is it inappropriate for a student to attend their mentor's dissertation defense?

Roll the carpet

Replacing matching entries in one column of a file by another column from a different file

Client team has low performances and low technical skills: we always fix their work and now they stop collaborate with us. How to solve?

Today is the Center

Has there ever been an airliner design involving reducing generator load by installing solar panels?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Java Casting: Java 11 throws LambdaConversionException while 1.8 does not

How much RAM could one put in a typical 80386 setup?



explain the result of the program in C [closed]


Calling a Haskell MD5 hashing function from C, and returning the result back to C landCalculating the number of prime numbers to solve the puzzleTwo sets came to an intersectionPrinting the n'th prime numbersSize improvements for cat reimplementationLoading… animating dots in CSegmented Sieve of EratosthenesCodeChef PRIME1 problem in PythonOptimised Python Code gives TLE for PRIME1Export dataset to CSV in C






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







-7












$begingroup$


       #include<stdio.h>
int main()
{
int i;
for (i=0;i<=10;++i)
display(--i); //calling function
return 0;
}
void display(int ); // declarationg of funtion
void display(int m) //function defination
{
printf("%d",m);
}


wanted to print the numbers as per this code. WHat will be the output of this code. I'm getting results infinite "-1"










share|improve this question









$endgroup$



closed as off-topic by Sᴀᴍ Onᴇᴌᴀ, Heslacher, Mast, 200_success, indi Mar 29 at 23:05


This question appears to be off-topic. The users who voted to close gave these specific reasons:



  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Sᴀᴍ Onᴇᴌᴀ, Mast, indi

  • "Authorship of code: Since Code Review is a community where programmers improve their skills through peer review, we require that the code be posted by an author or maintainer of the code, that the code be embedded directly, and that the poster know why the code is written the way it is." – Heslacher, 200_success


If this question can be reworded to fit the rules in the help center, please edit the question.
















  • $begingroup$
    Hey, I think this is more of a question for StackOverflow but to answer, you're decreasing the i by one and display it. Go to the for loop, increase i by one and repeat that process again i.e it'll always be -1
    $endgroup$
    – Vulpex
    Mar 29 at 16:50






  • 2




    $begingroup$
    This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    $endgroup$
    – Mast
    Mar 29 at 17:07










  • $begingroup$
    StackOverflow is a better place for this type of question
    $endgroup$
    – David White
    Mar 29 at 19:34










  • $begingroup$
    Don't modify the loop control variable within the loop. display(--i) is making i undefined.
    $endgroup$
    – pacmaninbw
    Mar 30 at 22:19


















-7












$begingroup$


       #include<stdio.h>
int main()
{
int i;
for (i=0;i<=10;++i)
display(--i); //calling function
return 0;
}
void display(int ); // declarationg of funtion
void display(int m) //function defination
{
printf("%d",m);
}


wanted to print the numbers as per this code. WHat will be the output of this code. I'm getting results infinite "-1"










share|improve this question









$endgroup$



closed as off-topic by Sᴀᴍ Onᴇᴌᴀ, Heslacher, Mast, 200_success, indi Mar 29 at 23:05


This question appears to be off-topic. The users who voted to close gave these specific reasons:



  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Sᴀᴍ Onᴇᴌᴀ, Mast, indi

  • "Authorship of code: Since Code Review is a community where programmers improve their skills through peer review, we require that the code be posted by an author or maintainer of the code, that the code be embedded directly, and that the poster know why the code is written the way it is." – Heslacher, 200_success


If this question can be reworded to fit the rules in the help center, please edit the question.
















  • $begingroup$
    Hey, I think this is more of a question for StackOverflow but to answer, you're decreasing the i by one and display it. Go to the for loop, increase i by one and repeat that process again i.e it'll always be -1
    $endgroup$
    – Vulpex
    Mar 29 at 16:50






  • 2




    $begingroup$
    This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    $endgroup$
    – Mast
    Mar 29 at 17:07










  • $begingroup$
    StackOverflow is a better place for this type of question
    $endgroup$
    – David White
    Mar 29 at 19:34










  • $begingroup$
    Don't modify the loop control variable within the loop. display(--i) is making i undefined.
    $endgroup$
    – pacmaninbw
    Mar 30 at 22:19














-7












-7








-7





$begingroup$


       #include<stdio.h>
int main()
{
int i;
for (i=0;i<=10;++i)
display(--i); //calling function
return 0;
}
void display(int ); // declarationg of funtion
void display(int m) //function defination
{
printf("%d",m);
}


wanted to print the numbers as per this code. WHat will be the output of this code. I'm getting results infinite "-1"










share|improve this question









$endgroup$




       #include<stdio.h>
int main()
{
int i;
for (i=0;i<=10;++i)
display(--i); //calling function
return 0;
}
void display(int ); // declarationg of funtion
void display(int m) //function defination
{
printf("%d",m);
}


wanted to print the numbers as per this code. WHat will be the output of this code. I'm getting results infinite "-1"







c programming-challenge






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 29 at 16:28









Vamsi KrishnaVamsi Krishna

1




1




closed as off-topic by Sᴀᴍ Onᴇᴌᴀ, Heslacher, Mast, 200_success, indi Mar 29 at 23:05


This question appears to be off-topic. The users who voted to close gave these specific reasons:



  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Sᴀᴍ Onᴇᴌᴀ, Mast, indi

  • "Authorship of code: Since Code Review is a community where programmers improve their skills through peer review, we require that the code be posted by an author or maintainer of the code, that the code be embedded directly, and that the poster know why the code is written the way it is." – Heslacher, 200_success


If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by Sᴀᴍ Onᴇᴌᴀ, Heslacher, Mast, 200_success, indi Mar 29 at 23:05


This question appears to be off-topic. The users who voted to close gave these specific reasons:



  • "Code not implemented or not working as intended: Code Review is a community where programmers peer-review your working code to address issues such as security, maintainability, performance, and scalability. We require that the code be working correctly, to the best of the author's knowledge, before proceeding with a review." – Sᴀᴍ Onᴇᴌᴀ, Mast, indi

  • "Authorship of code: Since Code Review is a community where programmers improve their skills through peer review, we require that the code be posted by an author or maintainer of the code, that the code be embedded directly, and that the poster know why the code is written the way it is." – Heslacher, 200_success


If this question can be reworded to fit the rules in the help center, please edit the question.












  • $begingroup$
    Hey, I think this is more of a question for StackOverflow but to answer, you're decreasing the i by one and display it. Go to the for loop, increase i by one and repeat that process again i.e it'll always be -1
    $endgroup$
    – Vulpex
    Mar 29 at 16:50






  • 2




    $begingroup$
    This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    $endgroup$
    – Mast
    Mar 29 at 17:07










  • $begingroup$
    StackOverflow is a better place for this type of question
    $endgroup$
    – David White
    Mar 29 at 19:34










  • $begingroup$
    Don't modify the loop control variable within the loop. display(--i) is making i undefined.
    $endgroup$
    – pacmaninbw
    Mar 30 at 22:19


















  • $begingroup$
    Hey, I think this is more of a question for StackOverflow but to answer, you're decreasing the i by one and display it. Go to the for loop, increase i by one and repeat that process again i.e it'll always be -1
    $endgroup$
    – Vulpex
    Mar 29 at 16:50






  • 2




    $begingroup$
    This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
    $endgroup$
    – Mast
    Mar 29 at 17:07










  • $begingroup$
    StackOverflow is a better place for this type of question
    $endgroup$
    – David White
    Mar 29 at 19:34










  • $begingroup$
    Don't modify the loop control variable within the loop. display(--i) is making i undefined.
    $endgroup$
    – pacmaninbw
    Mar 30 at 22:19
















$begingroup$
Hey, I think this is more of a question for StackOverflow but to answer, you're decreasing the i by one and display it. Go to the for loop, increase i by one and repeat that process again i.e it'll always be -1
$endgroup$
– Vulpex
Mar 29 at 16:50




$begingroup$
Hey, I think this is more of a question for StackOverflow but to answer, you're decreasing the i by one and display it. Go to the for loop, increase i by one and repeat that process again i.e it'll always be -1
$endgroup$
– Vulpex
Mar 29 at 16:50




2




2




$begingroup$
This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
$endgroup$
– Mast
Mar 29 at 17:07




$begingroup$
This question does not match what this site is about. Code Review is about improving existing, working code. Code Review is not the site to ask for help in fixing or changing what your code does. Once the code does what you want, we would love to help you do the same thing in a cleaner way! Please see our help center for more information.
$endgroup$
– Mast
Mar 29 at 17:07












$begingroup$
StackOverflow is a better place for this type of question
$endgroup$
– David White
Mar 29 at 19:34




$begingroup$
StackOverflow is a better place for this type of question
$endgroup$
– David White
Mar 29 at 19:34












$begingroup$
Don't modify the loop control variable within the loop. display(--i) is making i undefined.
$endgroup$
– pacmaninbw
Mar 30 at 22:19




$begingroup$
Don't modify the loop control variable within the loop. display(--i) is making i undefined.
$endgroup$
– pacmaninbw
Mar 30 at 22:19










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Fairchild Swearingen Metro Inhaltsverzeichnis Geschichte | Innenausstattung | Nutzung | Zwischenfälle...

Pilgersdorf Inhaltsverzeichnis Geografie | Geschichte | Bevölkerungsentwicklung | Politik | Kultur...

Marineschifffahrtleitung Inhaltsverzeichnis Geschichte | Heutige Organisation der NATO | Nationale und...