Basic Of C Prog. http://ecomputernotes.com/what-is-c/basic-of-c-programming Fri, 20 Apr 2018 23:42:47 +0000 Joomla! - Open Source Content Management en-gb History of C? Why we use C programming language http://ecomputernotes.com/what-is-c/basic-of-c-programming/a-brief-history-of-c-why-we-use-c-programming-language http://ecomputernotes.com/what-is-c/basic-of-c-programming/a-brief-history-of-c-why-we-use-c-programming-language

Martin Richards developed a high-level computer language called BCPL in the year 1967. The intention was to develop a language for writing an operating system (OS). As you know an OS is software which controls the various processes in a computer system. This language was later improved by Ken Thompson and he gave it a new name B. The basic ideas about some topics such as arrays, etc., which were later inherited by C were developed in BCPL and B. In those days, the development of computers was in infancy. One of the serious constraints experienced while developing the language B was the small computer memory available at that time.

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Sun, 27 Jan 2013 13:25:10 +0000
Differentiate Between Keywords and Identifiers http://ecomputernotes.com/what-is-c/basic-of-c-programming/differentiate-between-keywords-and-identifiers http://ecomputernotes.com/what-is-c/basic-of-c-programming/differentiate-between-keywords-and-identifiers

when we said that every language consists of keywords and that these keywords are only understandable by the people who speak the language.The same is with C; keywords are special words that have special meaning in the C language and are reserved by the language. That last sentence has significant meaning, so I will take about it a little later on.

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Sun, 27 Jan 2013 13:17:59 +0000
Procedure to Create a Program in C Programming Language http://ecomputernotes.com/what-is-c/basic-of-c-programming/define-the-procedure-to-create-a-program-in-c-programming-language http://ecomputernotes.com/what-is-c/basic-of-c-programming/define-the-procedure-to-create-a-program-in-c-programming-language

There are many "languages" like, for example C, Fortran, PASCAL etc., that help us to convert an algorithm in to something that a computer can understand. We will focus here only on C programming So. let us start looking at how do we create a "C program".

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Sun, 27 Jan 2013 15:33:44 +0000
What is the importance of header files http://ecomputernotes.com/what-is-c/basic-of-c-programming/what-is-the-importance-of-header-files http://ecomputernotes.com/what-is-c/basic-of-c-programming/what-is-the-importance-of-header-files

The main role of header file is it is used to share information among various files.To put it brief, if we have several functions say 4 functions named as f1, f2, f3, f4 placed in file say sample.c and if all the functions want to get accessed each other all must be placed in the same file sample.c. 

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Sun, 27 Jan 2013 13:19:41 +0000
gets() and puts() Functions http://ecomputernotes.com/what-is-c/basic-of-c-programming/gets-and-puts-functions http://ecomputernotes.com/what-is-c/basic-of-c-programming/gets-and-puts-functions

We can read a string using the %s conversion specification in the scanf function. However, it has a limitation that the strings entered cannot contain spaces and tabs. To overcome this problem, the C standard library provides the gets function. It allows us to read a line of characters (including spaces and tabs) until the newline character is entered, i. e., the Enter key is pressed. A call to this function takes the following form:

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Thu, 14 Aug 2014 11:46:46 +0000
Anatomy of C Program http://ecomputernotes.com/what-is-c/basic-of-c-programming/define-the-anatomy-of-c-program http://ecomputernotes.com/what-is-c/basic-of-c-programming/define-the-anatomy-of-c-program

We have some compiler preprocessor commands. This includes various #include files. Then comes the main function. Some name can also be given to the main function. Then, we have the variable declarations used in the main code. Then we have sub-functions.

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Sun, 27 Jan 2013 15:35:51 +0000
What is Libraries file in C http://ecomputernotes.com/what-is-c/basic-of-c-programming/what-is-libraries-file http://ecomputernotes.com/what-is-c/basic-of-c-programming/what-is-libraries-file

Another component common to C programs is the header file. This supplies information about the standard library functions. These files all end with the .h extension and are added to the program using the #include pre-processor directive. All C compilers use a pre-processor as their first phase of compilation to manipulate the code of the source file before it is compiled.

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Sun, 27 Jan 2013 13:22:05 +0000
getchar() and putchar() http://ecomputernotes.com/what-is-c/basic-of-c-programming/getchar-and-putchar-function http://ecomputernotes.com/what-is-c/basic-of-c-programming/getchar-and-putchar-function

The standard C library provides several functions and macros for character 1/0. Here we consider the getchar and putchar macros. As these macros read or write a single character, they are typically used in a loop to read/write a sequence of characters.

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Thu, 14 Aug 2014 11:39:49 +0000
Escape Sequences in C http://ecomputernotes.com/what-is-c/basic-of-c-programming/escape-sequences-in-c http://ecomputernotes.com/what-is-c/basic-of-c-programming/escape-sequences-in-c

Escape sequences are basically control characters used for formatting the output. These are combinations of a backslash and a character in lowercase. We have already used "\n", which shifts the curser to the next line. Table lists the escape sequences defined in C language.

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Sat, 27 Dec 2014 12:18:08 +0000
What is Basic Language (beginner's all-purpose symbolic instruction code,)? http://ecomputernotes.com/what-is-c/basic-of-c-programming/basic-language http://ecomputernotes.com/what-is-c/basic-of-c-programming/basic-language

BASIC stands for beginner's all-purpose symbolic instruction code, and is a computer programming language that was invented in 1964 at Dartmouth University by John G Kemeny and Thomas E Kurtz. BASIC has the advantage of English-like commands that are easier to understand and remember than those of most other languages. Even so, the latest versions of BASIC can do just about anything programming languages like C or Pascal can do.

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Fri, 28 Feb 2014 19:57:55 +0000
What is Header Files in C? http://ecomputernotes.com/what-is-c/basic-of-c-programming/header-files http://ecomputernotes.com/what-is-c/basic-of-c-programming/header-files

The C standard library provides the executable code and declarations for functionality provided in it. The executable code for the library is provided in separate files, usually in the lib directory, in the installation directory of the compiler. The library files in Turbo C/C++ are named *.LIB, whereas those in the MinGW compiler provided with Dev-C++ and Code :: Blocks are named lib*. a.

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Wed, 13 Aug 2014 10:56:33 +0000
Features of C http://ecomputernotes.com/what-is-c/basic-of-c-programming/features-of-c http://ecomputernotes.com/what-is-c/basic-of-c-programming/features-of-c

(i) It is a structured high-level language and is highly portable to different platforms.

(ii) C is closest to assembly language and hence it is extremely efficient. Some programmers call it "high-level assembly language", although it is not a justified comment.

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Fri, 26 Dec 2014 21:40:13 +0000
Comments in C http://ecomputernotes.com/what-is-c/basic-of-c-programming/comments-in-c http://ecomputernotes.com/what-is-c/basic-of-c-programming/comments-in-c

If you construct a long program today and try to recall it after a few days, there is every possibility that you would have forgotten quite a few things and even what the program does or what a particular name stands for. Comments if included in a program help in recollection of different names, data values and other parameters.

]]>
jimmy_k_thakur@yahoo.com (Dinesh Thakur) Basic Of C Programming Sat, 27 Dec 2014 12:41:22 +0000