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









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... type for objective c programming. We are also using the same.  Once you
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
ModuleNotFoundError: No module named 'infinite'
ModuleNotFoundError: No module named 'infinite'  Hi, My Python... 'infinite' How to remove the ModuleNotFoundError: No module named 'infinite... to install padas library. You can install infinite python with following
loop
loop  what is the difference b/w do while,while and for loop..with example
loop
loop  i want to write my name(inder) through loop in java using star
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
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
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
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++  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
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++  How can i write this in dev c
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++  use a prgrm as an example to xplain-: a)class b)object c)message d)cope resolution operator
c++
c++  write a programme that calculates the area and circumference of a rectangle
c#
c#  how to find out the size of the BMP image
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
c++
c++  i use turbo c++...i want to change the background color...what is the command for it and the header file used
C++
C++  dear sir How to create windows form application for login screen using C++? USER Name -TESTADMIN Password -testuser
ModuleNotFoundError: No module named 'js.jquery_infinite_ajax_scroll'
ModuleNotFoundError: No module named 'js.jquery_infinite_ajax_scroll' ...: No module named 'js.jquery_infinite_ajax_scroll' How to remove the ModuleNotFoundError: No module named 'js.jquery_infinite_ajax_scroll' error
ModuleNotFoundError: No module named 'capped_infinite_generator'
ModuleNotFoundError: No module named 'capped_infinite_generator'  Hi...: No module named 'capped_infinite_generator' How to remove the ModuleNotFoundError: No module named 'capped_infinite_generator' error? Thanks  
ModuleNotFoundError: No module named 'django-infinite-icons'
ModuleNotFoundError: No module named 'django-infinite-icons'  Hi...: No module named 'django-infinite-icons' How to remove the ModuleNotFoundError: No module named 'django-infinite-icons' error? Thanks   Hi
ModuleNotFoundError: No module named 'django-infinite-memcached'
ModuleNotFoundError: No module named 'django-infinite-memcached'  Hi...: No module named 'django-infinite-memcached' How to remove the ModuleNotFoundError: No module named 'django-infinite-memcached' error? Thanks  
ModuleNotFoundError: No module named 'django-infinite-pagination'
ModuleNotFoundError: No module named 'django-infinite-pagination'  Hi...: No module named 'django-infinite-pagination' How to remove the ModuleNotFoundError: No module named 'django-infinite-pagination' error? Thanks
ModuleNotFoundError: No module named 'django-infinite-pagination-mega'
ModuleNotFoundError: No module named 'django-infinite-pagination-mega' ...: ModuleNotFoundError: No module named 'django-infinite-pagination-mega' How to remove the ModuleNotFoundError: No module named 'django-infinite-pagination-mega' error
ModuleNotFoundError: No module named 'django-infinite-scroll-pagination'
ModuleNotFoundError: No module named 'django-infinite-scroll-pagination' ...: ModuleNotFoundError: No module named 'django-infinite-scroll-pagination' How to remove the ModuleNotFoundError: No module named 'django-infinite-scroll-pagination'
ModuleNotFoundError: No module named 'infinite-image-downloader'
ModuleNotFoundError: No module named 'infinite-image-downloader'  Hi...: No module named 'infinite-image-downloader' How to remove the ModuleNotFoundError: No module named 'infinite-image-downloader' error? Thanks  
ModuleNotFoundError: No module named 'js.angular_infinite_scroll'
ModuleNotFoundError: No module named 'js.angular_infinite_scroll'  Hi...: No module named 'js.angular_infinite_scroll' How to remove the ModuleNotFoundError: No module named 'js.angular_infinite_scroll' error? Thanks
ModuleNotFoundError: No module named 'js.jquery_infinite_ajax_scroll'
ModuleNotFoundError: No module named 'js.jquery_infinite_ajax_scroll' ...: No module named 'js.jquery_infinite_ajax_scroll' How to remove the ModuleNotFoundError: No module named 'js.jquery_infinite_ajax_scroll' error
c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples
c++
c++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples
C++
C++  differenciate btw.-a)local & public variables b)pre-defined & user defined functions c)fnctn prototype,defination & fnctn code.use code examples
C++
C++  Describe the principle advantages of deploying a linked list versus a static array when implementing a Queue or a Stack
c++
c++  write a prgrm tht accepts 3 integer values,then with a function to swap the values
C++
C++  Trace the bubble sort using the following integers,which represent the elements in an array. 5,7,3,8,6,7,3
C++
C++  I have been asked to write a programme that gets five values,gets the sum,average and product please help me

Ads