Tags » C Program

Basic Graph Data Structure to demonstrate Friendships

Graphs have numerous applications out of which Social Networks is quite popular.

In this Article I have tried to present a simple use case to demonstrate how to represent it using Adjacency Lists.   642 more words

Data Structures

Data Structures using C

Lately I have been implementing the standard Data Structures in Computer Science using the C Programming Language. These have the minimal functions to demonstrate the basic usage. 139 more words

Data Structures

Check if Number is Odd Using Bitwise - C

An odd number always has the LSB set to 1. If we AND the given number with 1, the even number will always turn out to be zero. 41 more words

Algorithms

About Neon-edu

Hello Friends Welcome to my first blog Neon-edu.

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