Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > null statement and use of for loop

Reply
Thread Tools

null statement and use of for loop

 
 
khalid.allouh@gmail.com
Guest
Posts: n/a
 
      05-20-2009
Hi

What is a null statement ? Explain a typical use of it

How can we use for loops when the number of iterations are not known?

Regards
Khalid Allouh
 
Reply With Quote
 
 
 
 
nick_keighley_nospam@hotmail.com
Guest
Posts: n/a
 
      05-20-2009
On 20 May, 10:39, khalid.all...@gmail.com wrote:

> What is a null statement ? Explain a typical use of it
>
> How can we use for loops when the number of *iterations are not known?


You may not get useful answers to this question. This is because your
post looks like "homework", that is question that is asked in order
to
test someones knowledge of a subject they are being educated in. This
need not be (but usually is) a formal educational course. You benefit
from answering the question yourself, not by stealing the answer from
elsewhere.

For the null statement look in you text book (I suspect most
practicing
programmers couldn't give a good answer to this question; the issue
is more theoretical than practical).

Loops when the number of iterations is unknown? There must be some
sort of termination criterion. Continue looping until the criterion
is met.




 
Reply With Quote
 
 
 
 
Doug Miller
Guest
Posts: n/a
 
      05-20-2009
In article <0c03f43f-30f2-46c0-8932->, wrote:
>Hi
>
>What is a null statement ? Explain a typical use of it
>
>How can we use for loops when the number of iterations are not known?


Do your own damn homework.
 
Reply With Quote
 
mark.bluemel@googlemail.com
Guest
Posts: n/a
 
      05-20-2009
On 20 May, 10:39, khalid.all...@gmail.com wrote:
> Hi
>
> What is a null statement ? Explain a typical use of it


You rub it on your elbow when it aches...

Oh! You asked for "typical". I thought you meant "topical".
 
Reply With Quote
 
gw7rib@aol.com
Guest
Posts: n/a
 
      05-20-2009
On 20 May, 10:39, khalid.all...@gmail.com wrote:
> What is a null statement ?


;

> Explain a typical use of it


for (; *p; p++);

> How can we use for loops when the number of *iterations are not known?


For example, for (; *p; p++);
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Triple nested loop python (While loop insde of for loop inside ofwhile loop) Isaac Won Python 9 03-04-2013 10:08 AM
Why use "return (null);" instead of "return null;" ? Carl Java 21 08-24-2006 04:33 AM
"stringObj == null" vs "stringObj.equals(null)", for null check?? qazmlp1209@rediffmail.com Java 5 03-29-2006 10:37 PM
Which of switch statement and if-else statement takes less time to execute? swaroophr@gmail.com C Programming 21 08-02-2005 09:24 AM
About Latches and Registers was (When do I always put a "else NULL"statement in my VHDL code?) Ingmar Seifert VHDL 0 09-14-2003 07:57 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57