Question: Infinite loop in c

Ads

 
 
 

Share on Google+Share on Google+

Java Coder
Infinite loop in c
1 Answer(s)      5 years and 7 months ago
Posted in : Java Beginners

When i type my variable as a uint32_t, it returns the infinite loop why?

uint32_t i;
Ads
View Answers

September 26, 2011 at 1:05 PM


what is uint32_t in c

uint32_t is a Unsigned of 32 bits and it's minimum value is " 0 " and maximum value is " 232 ? 1 which equals 4,294,967,295 ".

So, it's value is always >= 0 -
that is why it will return a infinite loop.

See the example given below to write a simple loop program in C.

int main () {
    int i ;
    for(i=10;i>=0;i--)
            printf("i is %d \n",i);

    return 0;
}

Ads









Related Tutorials/Questions & Answers:
Infinite loop in c
Infinite loop in c   When i type my variable as a uint32_t, it returns the infinite loop why? uint32_t i
stop an infinite for loop - Java Beginners
want this infinite for loop program to be stopped by another program named kill. when i run that another program kill the execution of infinite loop program...stop an infinite for loop  class InfiniteForLoop{ public static
Advertisements
java infinite loop - Java Beginners
("R"); } }//end of class its coming infinite loop and terminating itself...java infinite loop  class Top { public Top(){} public Top(String s... { Button2 c= new Button2("A"); public Button2(String s) { super(s
Why is my program running an infinite loop? Parallel Arrays Program
Why is my program running an infinite loop? Parallel Arrays Program  Calculate and print the average (this works) Search for Joel in the list, print... an infinite loop. Why? import java.util.*; import java.text.DecimalFormat
for what value of i the loop executes for infinite times if i prove a condition like ( i !=i+0)
for what value of i the loop executes for infinite times if i prove a condition like ( i !=i+0)  for what value of i the loop executes for infinite times if i prove a condition like ( i !=i+0
write a program to use for loop print **********========== in c language
write a program to use for loop print **********========== in c language  write a program to use for loop print **========== in c language
iPhone Do loop in Objective c
iPhone Do loop in Objective c As you know, the concept of loop is almost same in objective c programming. So, here in this tutorial of "Do loop in Objective c...[]) {     //Do Loop in Objective c
iPhone for each loop in Objective c
iPhone For each loop in Objective c In general, for each loop is used... it with a small "for each loop in objective c " example. I have... objective c example, moves around the for each loop, how to use it and get
for loop
for a number of times it is finite loop and if repetition is done infinitely it is infinite loop. Java provides several loop structures for iteration. Those...for loop  what is for loop   Loops are used for iteration
C Break for loop
C Break for loop       In this section, you will learn how to use break statement in a for loop. The break statement terminates the execution of the enclosing loop
loop
loop  i want to write my name(inder) through loop in java using star
loop
loop  what is the difference b/w do while,while and for loop..with example
For loop
For loop  Hi! Please explain the following loop: for(i=0;i<a[j];i++) THANX!!   Please reply as soon as possible
for loop
for loop  how to performs the for loop when 2 inputs given like displays the triangle shape and how to take initial values or declaration values plz explain in detailed ex. 1 12 123 1234
Loop
to understand a loop my quesiton are: what du i do wrong in my code since.... (made in blueJ) Class Loop public void loopUpGeneral(int start, int stop... dk  Hi, Please check the for loop once again: for (int i
For Loop
For Loop  Write a program using a for loop that computes the following sum: 1/2 + 2/2 + 3/2 + 4/2 + 5/2 + ... N/2 N will be an integer limit the user enters. This is an example of my upcoming quiz. I need help on knowing
for loop
for loop  using only two for loop how can print below numbers 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 7 7 7 7 7 7 7 6 6 6 6 6 6 5 5 5 5
for loop
for loop  using only two for loop how can print below numbers 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 7 7 7 7 7 7 7 6 6 6 6 6 6 5 5 5 5
loop
loop  strong textHello can someone help me with this problem,I need to output the following code using a loop the code is as follows with the user inputs in inverted commas,thanks. ENTER CODE(XX to Stop) CODE:"D24" QUANTITY:"2
uninvalidateble (infinite) session - JSP-Interview Questions
uninvalidateble (infinite) session  Hello. I have a problem with HTTPSession. Here is a client and JSP page. Every 5 seconds client requires update thruogh AJAX, so session will never expire!! So, problem is that I need
c++
c++   Assume vector "x" of integers with values of 7, 3, 5, 8, 1, 9..., x.size()-5 and 0, respectively. Third, assume a for-loop header which: 3.1...-variable-for-which-the-condition-is-true of the value of variable "b"; 3.4) has a loop
c++
c++  Characterize the following algorithm in terms of Big-O notation. Also find the exact number of additions executed by the loop. (Assume that all variables are properly declared.) for (int i = 1; i <= n; i++) sum = sum + i
iPhone Loops in objective c
of loop examples, i have discussed about... Do loop in Objective c while loop in objective c for each loop in objective c and for loop objective c 2.0 The loop concept and the usage of it, is almost same as in C & C++ programming
C++
C++  How can i write this in dev c
c#
c#  how to find out the size of the BMP image in C
C++
C++  How can i write this in dev c
c++
c++  use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator
c#
c#  how to find out the size of the BMP image
c++
c++  write a programme that calculates the area and circumference of a rectangle
C++
C++  dear sir How to create windows form application for login screen using C++? USER Name -TESTADMIN Password -testuser
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
Tutorials   
Java Spring Hibernate Struts Training What is the meaning of Java Platform? Why Java is a platform independent language? What is the benefits of learning Core Java? Which technology should I learn after Java? What is array in java with example? How to Convert ArrayList to Array? How to substring in Java? How to format number in Java? What is instance variable in Java? How to download MySQL JDBC driver? What is Calendar class in Java? Which is the best Java tutorials for beginners? How to rename a file in Java? How to delete file in Java code? How to get day from date in Java using Calendar? How to get day of week in Java? How to calculate Date Difference in Java? How to compare date in Java? How to declare array in Java? How to calculate average of array in Java? What is Array in Java? write a java program to find the summation of all the integers entered on command line Sum of two numbers using command line arguments in Java How to create and use Array in Java? How to pass command line arguments in Java? How to create Applet Hello World? Appending String efficiently in Java How to append String in Java? How to list even numbers between 1 and 100? How to add BigDecimal in Java? What is Abstraction In Java? Which is best Beginners Java Tutorial? What is java.util package? Create list from array in Java Filter collection in Java 8 What is the best way to filter a Java Collection? Easy way to transform Collection to Array? How to convert Collection to Array in Java? What are Basic Java Language Elements? Advanced Java Tutorials in 2017 Java brief history Best Reasons to learn Java Java Example Codes and Tutorials in 2017 How do I read a large file quickly in Java? Is learning Java worthwhile? How to create first Java Program? Retrieve database from the table dynamically in jsp from oracle using servlet What does core Java include? java What are some way to learn Java quickly?

Ads

 
Advertisement null

Ads