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,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top