#include<stdio.h> #include<malloc.h> #include<stdlib.h>
Information about resetting and configuring Mobile phones (Java, Android, Symbian etc), educational articles especially for programming in C, C++ and Java and more about Computers and operating systems
Showing posts with label two. Show all posts
Showing posts with label two. Show all posts
C Program To Implement Circular Linked List
C Program to implement circular linked list.
Labels:
$ccpp
,
c program
,
C++
,
circular
,
code
,
compiled
,
delete
,
ends
,
insert
,
linked
,
linked list
,
list
,
programming
,
source code
,
two
C and C++ swapping numbers
The following are C and C++ programs to swap the values of two variables using a third variable.
C Program:
C Program:
#include<stdio.h> void main() { int x,y,temp; printf("Enter the value of xand y\n"); scanf("%d%d", &x, &y); printf("Before Swapping\n x= %d\n y = %d\n",x,y); temp = x; x= y; y = temp; printf("After Swapping\n x= %d\ny= %d\n",x,y); }
Subscribe to:
Posts
(
Atom
)