Exforsys

Online Training

To get Output

This is a discussion on To get Output within the C and C++ forums, part of the Programming Talk category; I want to get output in my C programming as "Exforsys Training" without using semicolon as terminator for ...


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-08-2007, 04:53 PM
Senior Member
 
Join Date: Apr 2006
Posts: 145
Rahulbatra is on a distinguished road
To get Output

I want to get output in my C programming as
"Exforsys Training"
without using semicolon as terminator for this output statement. How can I do this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-10-2007, 09:23 AM
Senior Member
 
Join Date: Apr 2006
Posts: 122
rachelle is on a distinguished road
There are various ways of achieving this interesting solution.
I have given below one method. You can code as
#include <stdio.h>
int main(int a, char *e[])
{
if(puts(e[1]))
{}
}

You can execute this file of the program in your command line and give your input and get the output as Exforsys Training
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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 On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Control Output caradoc DB2 3 04-09-2007 08:59 AM
To achieve Output Ralph Linux 0 12-12-2006 03:58 AM
C Programming - Managing Input and Output Operations JobHelper Career Advice 0 04-15-2006 08:30 AM
Solaris x86 FAQ 2/2 Dan Anderson Tech FAQ 0 04-27-2004 08:24 PM
[gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.26) Chet Ramey Tech FAQ 0 04-26-2004 11:00 AM


All times are GMT -4. The time now is 04:32 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.