Posts

Showing posts with the label CppTutorial

Identifiers in c++ Programming Language

Image
identifier in C++ Identifiers in c++ Programming Language The identifier are the names used to represent variable, constant, types, functions and labels in the program. Identifier is an important feature of all computer languages. A good identifier name should be descriptive but short. An identifier in C++ may consist of 31 characters. If the name of an identifier is longer then 31 characters, the first 31 character will be used. The remaining characters will be ignored by C++ compiler . Some important rules for identifier name are as follows: The first character must be an alphabetic or underscore (_). The identifier name must consist of only alphabetic characters, digits or underscore. The reserved word cannot be used as identifier name. Type OF IDENTIFIERS C++ provide the following type of identifiers: Standard Identifiers A type of identifier that has special meaning in C++ is known as standard identifier. C++ cannot use a standard identifier for its or...

C++ Operator Precedence

C++ Operator Precedence The order in which different type of operators in an expression are evaluated is known as operator precedence. C++ operator precedence is also known as hierarchy of operators. Each operator has its own precedence level. If an expression contains different types of operators, the operators with higher precedence are evaluated before the operators with lower precedence. The order of precedence in C++ Language is as follows: Any expression given in parentheses is evaluated first. Then Multiplication * and division / Operators are evaluated. Then plush + and minus – operators are evaluated. In case of parentheses within parentheses, the expression of the inner parentheses will be evaluated first. Example: The expression 10*(24/(5-2))+13 is evaluated in the following order: First of all the expression 5-2 will be evaluated. It gives a value 3. Secondly, 24 will be divided by the result of last line i.e. 24/3 giving value 8. Thirdly, 10 will...

Difference Between Compiler and interpreter and assembler

Image
Difference Between Compiler and interpreter and assembler Language Processor Computer understands only machine language. A program writer in high level or assembly language cannot be run on a computer directly. It must be converted into machine language before execution. Language processor or translator is a   software that converts these programs into machine language. Every computer language has its own translators. Different Types of language processors are as follows.\ Difference Between Compiler and interpreter and assembler Compiler A compiler is a program that converts the instruction of a high level language into machine language as a whole. A program written in high level language is called source program. Compiler converts source program into machine code know as object Program. The compiler checks each statement in the source program and generates machine instructions. Compiler also checks syntax errors in the program. A source program containing ...

Borland C++ Compiler Download Free

Image
Download Borland C++ Compiler In this article i will guide you how to download and install Borland C++ compiler.  Borland C++ compiler is used to compile both c and c++ programs on windows and other platforms. Borland C++ compiler was lunched after turbo C++ compiler and has better features and efficiency. But the worst thing is the latest version of Borland C++ does not come up with the IDE, so I will mention link of IDE  C Free . So with  C Free we can write and run programs easily. In this Post I am sharing the link to download Borland C++ compiler 5.5 and the steps to install and make it work Borland C and C++ compiler Step to Download Borland C++ Compiler and IDE: 1 Click on below link and Download the Borland C++ compiler zip file                               Download here 2    2 Extract the downloaded file you have two folder after Extract 3...

Best IDE for and C and C++ programming languages

Image
Many programming languages come with a lot of promise but they are dead early. However, there are some legends that emerged from the first generation of computers and still very popular and relevant. C and C++ programming languages are gem and very popular across applications and systems all over the world. Their powerful set of features and good security, these programming languages are very popular among programmers. C language Compiler IDE Good IDE Help programmers to create error-free and maintainable application or any kind of website. Best IDE is the one that makes you most productive. Best compilers for C and C++ programming. There are many compilers for C and C++ programming some of them are: Code Block Code block is open source and free compiler for both c and c++ programming. Code block is lightest and the best C and C++ IDE among the available options in the market.   It’s a cross platform you can add various kinds of plugin to it and make it more effici...

Most Asked C Programming Interview Question

Image
  In this article I am going to discuss fundamentals of see related interview questions and answers. C programming Interview Questions 1-     What is C programming language and why we use it?   C there is a high level programming language it is developed by Dennis Ritchie in 1970s at Bell lab. It is used to develop system software and application software. 2-     Why we use main function in every C program? Main is pre-declared and user defined function it is, compulsory to use this function in every C program because execution of the program begins with main. 3-     What is the meaning of header file name, some header files? Header files contain declarations of predefined functions. We can use any number of header files in our programs as per the requirement of predefined functions. Some header files are   stdio.h for neurotic, math.h     string.dot ,and graphics dot.h.  4-     What is ...

Lesson No. 06 Introduction to Writing Functions In C

Image
Function In C programming Lesson No.  06:   Introduction to Writing Functions In C Now for the part we've all been waiting for, the basis of doing everything in C, functions. We've talked briefly about what functions are, how they are used, how we've even made some function calls, etc. Now it's time to really dive in and get a concrete understanding of functions and how to write our own. Fair warning, some of this will be repeat, so bare with me, I want to make absolutely sure everything gets covered. Functions IN C Programming What is a Function? In simple terms, a function is a piece of code that has other smaller bits of code clumped together to perform a certain task or set of tasks. Once again, things like printf, getchar, and main are functions themselves so you've seen what they can do. Now let's talk about the purpose of functions. Imagine we had a program that asked a question very regularly to a user and gathered input from them. It wou...

Lesson No 5: Comments in C programming

Image
This will be a shorter lesson, I think most of what we will talk about is how to use comments in code, where they should be used, etc. because comments can be summed up in about 2 sentences, it's honestly the easiest concept in programming. Comments in C programming What is a Comment and How Do You Use One? Comments In C Programming Alright, so a comment is just what it sounds like, it's a comment you can place in the middle of your code. There are two ways to write a comment, one for a single line comment, and one for multiple lines: //This is a comment that has to be on one line /*This is a comment that can be on multiple lines*/                           Notice the obvious differences, the one that is on a single line is written as a double forward slash followed by the text you wish to have in the comment, and the one on multipl...