C function clarification

Joined
Jul 6, 2010
Messages
6
Reaction score
0
Hi all,

I have a small doubt. All the if , while statements if u have only one line of execution we can avoid the brackets for example

if (condition)
statement;

while(condition)
statement;

then why the same thing not applicable to function example ??

int function()
return value;

thanks and regards,
satya
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top