C Board  

Go Back   C Board > General Programming Boards > C Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-11-2009, 03:16 AM   #1
Registered User
 
Join Date: Nov 2009
Posts: 9
about c

why they named as c programing y not d ,e .........
Then difference between structured programming and non- structured programing
Then what is the meaning for (#) which is used in #include<stdio.h>
britto116 is offline   Reply With Quote
Old 11-11-2009, 03:23 AM   #2
Registered User
 
Join Date: Oct 2009
Location: While(1)
Posts: 368
About Your question number one

Quote:
It was named "C" because many of its features were derived from an earlier language called "B", which according to Ken Thompson was a stripped-down version of the BCPL programming language.
Courtesy of Wikipedia

Second one # means preproccesive directives i think the name suggest means before the processing means even before the compilation
RockyMarrone is offline   Reply With Quote
Old 11-11-2009, 04:15 AM   #3
Registered User
 
C_ntua's Avatar
 
Join Date: Jun 2008
Posts: 1,276
Yes, # is used by the pre-processor, before the compilation. So when #include the compiler knows which files to look into.

I think C comes from Common, but not 100% sure
C_ntua is offline   Reply With Quote
Old 11-11-2009, 05:02 AM   #4
Registered User
 
Join Date: Oct 2009
Location: While(1)
Posts: 368
Quote:
Originally Posted by C_ntua View Post
Yes, # is used by the pre-processor, before the compilation. So when #include the compiler knows which files to look into.

I think C comes from Common, but not 100% sure
I will extend the answer it will also include macro's #if 0 statments #ifdef calls etc.
Or even all the stuff which starts with #
RockyMarrone is offline   Reply With Quote
Old 11-11-2009, 11:54 AM   #5
Registered User
 
Join Date: Sep 2006
Posts: 3,141
The C language was based on Ken Thompson's work on the B language.
Adak is offline   Reply With Quote
Old 11-11-2009, 11:57 AM   #6
Registered User
 
Join Date: Nov 2009
Posts: 9
thank

thank u
Quote:
Originally Posted by RockyMarrone View Post
I will extend the answer it will also include macro's #if 0 statments #ifdef calls etc.
Or even all the stuff which starts with #
britto116 is offline   Reply With Quote
Old 11-11-2009, 04:12 PM   #7
Registered User
 
Join Date: Sep 2008
Location: Toronto, Canada
Posts: 521
Difference between structured and non-structured... The way I remember it, if a language has begin/end clauses, whether expressed in such key words, or punctuation like brackets, it's structured. That is, there are clear blocks of code which isolate execution to within them.

Unstructured would be the old BASIC which had line numbers... It was allowable to GOTO any line from any line. There was no concept of structure. Unless the programmer imposes their own by keeping execution in segregated areas, vs. "spaghetti code".

I don't know of any current unstructured languages in current use today. Maybe Perl ... I find it pretty awful, but that may be more in the way programmers are all over the place there.
nonoob is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 04:54 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22