Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

What syntax differences should I remember when shifting from Turbo C to Code::Blocks for C programming?

3 Answers

Relevance
  • oyubir
    Lv 6
    3 years ago
    Favorite Answer

    C is C. What ever the IDE you are using. There is no syntax differences.

    Which doesn't mean that shifting from one to another is easy. You'll certainly have some different way to describe the project (list of .c and .h files, and their relations; location of standard libraries and header files; etc).

    There also will probably be some differences between the error messages, since it will not be the same compiler (Turbo C provides its own compiler. CodeBlocks uses an external one.

    Maybe even, there will be some errors that are tolerated on one and not another (but there shouldn't ; and there won't be for codes of your level - don't take it personnaly, but people asking this kind of question don't use subtil pragma or __attribute__).

    Anyway, even that, we can't tell, since this is not related at all with the IDE, but with the compiler. And you didn't say which compiler you plan to use.

    C is C. Your question is about syntax. And syntaxically speaking, there is no difference between C in one IDE and C in another IDE.

  • 3 years ago

    Syntax - no differences

    C is C, as defined in Kernigan and Ritchie

    What Turbo C may have is some statement .builtin functions

    That in any other implementation would be a library

    or possibly compiler directives - for small or large x86 implementations.

    in early C and other programs

    some compilers for Windows/PC added memory PUT and GET calls..

    which C does not have.. is accesses it in more classical library calls.

    expect that Code::Blocks will be Classic C.

    Talking of which... Brian Kernigan..

    https://www.youtube.com/watch?v=de2Hsvxaf8M

    and more.. at Computerphile

    https://www.youtube.com/watch?v=Sg4U4r_AgJU

  • 3 years ago

    Also tell the difference in errors shown. Thanks

Still have questions? Get your answers by asking now.