Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Infinite loop in c

Have Programming Question? Ask it here!
 
 
 


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


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

uint32_t i;

Advertisement
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...[]) {     //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
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
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
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 to find out the size of the BMP image in C
C++
C++  How can i write this in dev 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
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++  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++  Trace the bubble sort using the following integers,which represent the elements in an array. 5,7,3,8,6,7,3
c++
c++  write a prgrm tht accepts 3 integer values,then with a function to swap the values
C++
C++  Describe the principle advantages of deploying a linked list versus a static array when implementing a Queue or a Stack
C#
C#  i need a code that will make program perform the basic operations upon the data Listview save, update and cancel
C++
C++  I have been asked to write a programme that gets five values,gets the sum,average and product please help me
C#
C# register form  i want to generate a user id automatically after filling their register form and i want to show their id to their email? please reply me soon
c++
c++  Consider the following function: int funcExercise7(int list[], int size) { int sum = 0; for (int index = 0; index < size; index++) sum = sum + list[index]; return sum
c++
c++  Consider the following declarations: class xClass { public: void... private members does class xClass have? c. How many constructors does class xClass.... Write a C++ statement that prints the values of the data members of the object
c++
c++  .write a program that accepts 5 subjects of a student,it should have a function to calculate the average & another function to grade.grade should be as follows-<40=E,40-49=D,50-59=C,60-69=B & >70
C++
C++  write a prgrm tht gets five values,gets the sum,average &...; #include <conio.h> void main() { clrscr(); int a,b,c,d,e,sum; float average...;>b>>c>>d>>e; sum=a+b+c+d+e; average=sum/5; product=a*b*c*d
c++
c++  write a prgrm tht calculates the surface area of a cylinder.the prgrm shld find the circumfrance and have a function that calculates the fadius and another to calculate the surface area
c++
c++  write a program that gets a key or character from the keyboard and displays it ASII code in decimal, hexadecimal and binary form.It must also give a description of the key pressed
c++
c++  Consider the following declarations: class xClass { public: void func(); void print() const; xClass (); xClass (int, double); private: int u... private members does class xClass have? c. How many constructors does class xClass
c++
c++  Write a console based C++ program that reads student information from a text file, build an array of objects of type class StudentInfo... name with the minimum GPA 7) Display Student GPAs as Letter Grades (A, B, C, D
Advertisements
 

 

 

DMCA.com