Home » Ask & Discuss » Other Courses » Computer Applications « Back to Discussion



Computer Applications

New kid on the Block

Joined: 7 Oct 2008
Post: 2
7 Oct 2008 17:13:58 IST
0 People liked this
2
996 View Post
Can we print a statement without using semicolon ?
None

Can we print a statement without using semicolon ?


Share this article on:

Comments (2)

Sagar Saxena's Avatar

Forum Expert
Joined: 8 Oct 2008
Posts: 7221
10 Oct 2008 12:59:55 IST
3 people liked this


hello dear,   yes we can print the statement widout using semicolon,here iam giving you one example for this  # include<stdio.h>
# include<conio.h>
void main()
{
if ( printf("Program without semicolon\n"))
{
if ( printf("successful"))
{}
}
else
{
if ( printf("Failure"))
{}

}
} plaese complite itand if thr is ne error than let me know it

Sudeshna  Shyam's Avatar

New kid on the Block

Joined: 14 Oct 2008
Posts: 9
14 Oct 2008 20:28:16 IST
0 people liked this

main()

 {

 if (printf("nHello World"))

  {

  }

}
 




Quick Reply


Reply

Some HTML allowed.
Keep your comments above the belt or risk having them deleted.
Signup for a avatar to have your pictures show up by your comment
If Members see a thread that violates the Posting Rules, bring it to the attention of the Moderator Team
Free Sign Up!

Preparing for IIT-JEE ?

Arihant Revision Package for IIT JEE - Books, Practice Tests + Rank Predictor


@ INR 1,995/-

For Quick Info

Name

Mobile No.

Find Posts by Topics

Physics.

Topics

Mathematics.

Chemistry.

Biology

Parents

Board

Fun Zone

Sponsored Ads