| | |
answer this plz
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Mar 2008
Posts: 1,493
Reputation:
Solved Threads: 123
0
#3 Oct 18th, 2009
Here the statement finishes with a comma, not a semicolon:
C Syntax (Toggle Plain Text)
#include <iostream> int main() { printf("Hello"), getchar(); return 0; }
I need pageviews! most fun profile ever :)
•
•
Join Date: Mar 2008
Posts: 1,493
Reputation:
Solved Threads: 123
0
#5 Oct 18th, 2009
Ahh, that's C+ code, didn't realize which forum this was. Try this:
C Syntax (Toggle Plain Text)
#include <stdio.h> int main() { printf("Hello"), getchar(); return 0; }
I need pageviews! most fun profile ever :)
•
•
Join Date: Sep 2009
Posts: 26
Reputation:
Solved Threads: 5
0
#7 Oct 18th, 2009
C Syntax (Toggle Plain Text)
#include <stdio.h> #define PRINT_STRING(_s) printf("%s",_s) int main() { PRINT_STRING("string"); return (0); }
You can also try this.
•
•
Join Date: Sep 2009
Posts: 26
Reputation:
Solved Threads: 5
0
#8 Oct 18th, 2009
C Syntax (Toggle Plain Text)
#include <stdio.h> #define PRINT_STRING(_s) printf("%s",_s) int main() { PRINT_STRING("string"); return (0); }
You can also try this.
•
•
Join Date: Mar 2008
Posts: 1,493
Reputation:
Solved Threads: 123
0
#9 Oct 18th, 2009
That's not correct, that just turns into: Once the preprocessor's done.
C Syntax (Toggle Plain Text)
#include <stdio.h> int main() { printf("%s","string"); return (0); }
I need pageviews! most fun profile ever :)
0
#10 Oct 18th, 2009
•
•
•
•
csurfer...howz that possible...i mean can u give the syntax plz...
william...this isnt working..i tried it out...
c++ Syntax (Toggle Plain Text)
#include<stdio.h> int main() { printf("%d%d",printf("Hello Daniweb"),printf("I am new here")); return 0; }
You would get an output as
I am new hereHello Daniweb1313 The inner printf's are not using a semicolon as you can see.
"printf" function returns the count of characters it has successfully output on the console and it processes from right to left internally hence first it print I am new here and then Hello Daniweb and then count of the successfully output characters of each string which in this case is 13 13.
I Surf in "C"....
![]() |
Similar Threads
- Learning SQL, Plz help me!! (MySQL)
- SQL statement to query user input?? (MS Access and FileMaker Pro)
- Please Help , Connection problem/dhcp/ip address (Networking Hardware Configuration)
- About Crystal Reports XI (Visual Basic 4 / 5 / 6)
- What the program does? (C++)
- RDS Server Error - Help! (ASP)
- What does it mean? (C)
- Slow computer + about:blank homepage (Viruses, Spyware and other Nasties)
- My Compaq Presario 1610 LCD screen is half gone, please help. (Monitors, Displays and Video Cards)
Other Threads in the C Forum
- Previous Thread: Hi , please solve the error and give the correct output, that i given below...
- Next Thread: c-strings in c++
Views: 517 | Replies: 12
| Thread Tools | Search this Thread |
Tag cloud for C
#include * append array arrays bash binarysearch changingto char character cm command copyanyfile copypdffile createprocess() database directory drawing dynamic execv feet fgets file floatingpointvalidation fork framework function functions getlogicaldrivestrin givemetehcodez global grade graphics gtkwinlinux histogram homework i/o ide include infiniteloop initialization input interest intmain() iso keyboard kilometer lazy license linked linkedlist linux list looping loopinsideloop. lowest matrix meter microsoft mqqueue oddnumber odf open openwebfoundation overwrite pause pdf pointer pointers posix power process program programming pyramidusingturboccodes read recursion recv recvblocked reversing segmentationfault single socket socketprogramming spoonfeeding standard strchr string student suggestions system test testing threads unix urboc user whythiscodecausesegmentationfault win32api windowsapi






