How am i supposed to write a code in c which compiles in c but not in c++
plz do let me know
prabhu_kar 0 Newbie Poster
Recommended Answers
Jump to Post>How am i supposed to write a code in c which compiles in c but not in c++
#include <stdio.h> int main(void) { char new[] = "Compiles in C, not in C++"; puts(new); return 0; }
That is, one way would be to use a C++ (and …
Jump to PostLOL good thinking :)
All 8 Replies
infamous 26 Junior Poster in Training
meabed 37 Junior Poster Team Colleague
Dave Sinkula 2,398 long time no c Team Colleague
infamous 26 Junior Poster in Training
kc0arf 68 Posting Virtuoso Team Colleague
liliafan 53 Junior Poster
meabed 37 Junior Poster Team Colleague
prabhu_kar 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.