Tags » C Program

What is c?

THE C PROGRAMMING LANGUAGE

What is C?

C is a general-purpose, high-level language that was originally developed by Dennis M. Ritchie to develop the UNIX operating system at Bell Labs. 280 more words

C Programming

C program to use arithmetic operators

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,d,e,f,g;
clrscr();
printf("Enter two numbers");
scanf("%d%d",&a,&b);
c=a+b;                    You can use abbrevations also 
d=a-b;
e=a*b;
f=a/b;
g=a%b;
printf("Sum is:%d\nSub is:%d\nMulti is:%d\nDivision is:%d\nMode is:%d",c,d,e,f,g); 
getch();
} 13 more words
Addition In C

Simple addition of two numbers

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,sum;
clrscr();
printf("Enter first no.");
scanf("%d",&a);
printf("Enter second no.");
scanf("%d",&b);
sum=a+b;
printf("Sum is:%d",sum);
getch();
}

Output:

Addition In C

CALL BY VALUE AND CALL BY REFERENCE

C++

Call by Value:-

1) In this actual copy of arguments is passed to formal arguments.

2) Any changes made are not reflected in the actual arguments.

72 more words
C++ Program

CLASSES AND OBJECTS (INTRODUCTION)

CLASSES AND OBJECTS

Class is a user defined data type, which holds its own data members and member functions, which can be accessed and used by creating instance of that class. 274 more words

C++ Program

OPERATOR OVERLOADING

In C++, we can make operators to work for user defined classes. For example, we can overload an operator ‘+’ in a class like String so that we can concatenate two strings by just using +. 113 more words

C++ Program

This (this) Pointer in C++

The ‘this’ pointer is passed as a hidden argument to all nonstatic member function calls and is available as a local variable within the body of all nonstatic functions. 156 more words

C++ Program