See a problem in else if statement

Dangling else problem

Image
Hello, This problem comes when we use else if statement and do some mistake more describe is given below......... Dangling else problem: One of the major problem with nested if is dangling else problem. The problem arises when both outer if statement inner if statement might pair with common else statement. Thus the compiler is not able to judge to pair the else with which statement. The solution to this problem is given by the compiler that it pairs else with the recent if thus sometimes giving wrong result.                                           Hence the programmer should put early bracket wherever required. This post is may very short because my only aim was to describe this problem. Thank you, Keep supporting............. 

Introduction of C language

                           Tutorial of C language

Hello, my name is Aneesh Mishra this is first blog.I am going to create blog on c language as you read in description i will post here every language full tutorial or course free for students ,who want to make future in programming.

(If you want c language tutorial in hindi please comment below.)

Introduction:

In starting i choose C language for create blog  because c language is also known as mother language of programming language if you learn all concept of c clearly you can sure learn any language.
                           Before learn any language we should know that language history and every quite knowledge of that .




                           The programming language C was  developed in the early 1970s by Dennis Ritchie at Bell Laboratories to be used by the UNIX operating system .It was named 'C' because many of its features were derived from an earlier language 'B'.Although C was designed for implementing system software, it was later on widely used for developing portable application software.
                          It is being used on several different software platforms.In a nutshell,there are a few computer architectures for which a C compiler does not exist.
                          It is good idea to learn C because few other programming language such as C++ and java are also based on C which means you will be able to learn them more easily in the future.


Background:

Before C many programming languages are developed as example in 1967 Martin Richards developed a language called BCPL(basic combined programming language).
C also supports the concept of data types.UNIX operating system was also developed at Bell Laboratories along with C language,C and UNIX are strongly associated with each other.
            For many years,C was mainly used in academic institutions, but with the release of different C compilers for commercial use and popularity of UNIX,C was widely accepted by computer professionals.
            In 1990 ,the international standards organization (ISO ) adopted the ANSI standard.This version of C came to be known as C89 .In 1995,  after some minor changes were made to C89, the new modified version was known as C95.in 1999 when some changes were made to C95,the modified version came to be known as C99.


                                             Taxonomy of C language:

Taxonomy of C language is based on background of C language.
from upper to lower:

ALGOL
BCPL
B
Traditional C
K&R C
ANSIC
ANSI/ISOC
C95
C99

C language was documented and popularized in the book 'The C Programming Language' by Brain W. Kernigham and Dennis Ritchie in 1978.

Thankyou, for read my blog i give all basic information of C language as introduction.
Now, I will start or cover more topic in my next post.


Comments

  1. Bro please make a turotial in Hindi please and thank you

    ReplyDelete

Post a Comment

Popular posts from this blog

Libraray Fine Hackerrank solution in C || Balanced Brackets Hackerrank solution in C

Permutations of Strings hackerrank solution in C || Permutations of Strings

Introduction to C part 2