Programming with C and C++
Pages
Home
PROGRAMS
PUZZLES and TECHNICAL APTITUDE
MINI PROJECTS
WINDOWS
Translate
Labels
2-D ARRAY TO 1-D ARRAY
ABOUT C
ACHROMATIC STRING
ADAM NUMBER
ALPHABET
ARRAY PROGRAMS
ASCII
BACKGROUND FOR FACEBOOK
BASIC UNIX COMMANDS
BINARY TO DECIMAL
BOMB GAME
C GAMES
C++ APTITUDES
CALCULATION ON COMMAND PROMPT
CALENDER IN C
CD BURNING
CHAT WITH YOUR FRIENDS USING MS-DOS
CLIENT SERVER IMPLEMENTATION
COMMAND PROMPT
COMPUTER NETWORKS
CONDITIONAL PROGRAMS
CONDITIONAL STATEMENTS
CONSTANTS
CONTROL OVER A TO Z
CONVERSION OF INTEGER INTO WORDS
DATA STRUCTURES APTITUDE
DATA TYPES
DATE AND TIME
EBOOKS
ENABLING AND DISABLING THE KEYBOARD
EXECUTION TIME OF A PROGRAM
FACT CORNER
FIBONACCI SERIES
FILE EXTENSIONS
FUNCTIONS
GCD
GENERATE PERFECT NUMBER
GET BACK HIDDEN DRIVE
GETTING THE DISK STATUS
GMAIL
HACKS
HIDE DRIVE IN MY COMPUTER
IDENTIFIERS
INTERNET EXPLORER SHORTCUTKEYS
JPEG TO BMP
KNAPSACK PROBLEM
LOOP PROGRAMS
LOOP STATEMENT
MACRO CALL
MENU DRIVEN ENVIRONMENT IN C
MESSAGE QUEUE FOR IMPLEMENTING MERGE SORT
MULTIPLICATION TABLE USING C
n-QUEEN'S PROBLEM USING BACKTRACKING
NATURAL NUMBER
NUMBER
ONE DIMENSIONAL ARRAY
PALINDROME
PASCAL'S TRIANGLE
PATTERNS
PENDRIVE
PERFECT NUMBER
PERFECT SQUARE
POINTER
POINTER VARIABLE
PRIME NUMBER
PROGRAM FOR SCROLLING THE WINDOW UP
PROGRAM TO CATCH ctrl+c
PROGRAMMING LANGUAGES
PROGRAMS
PUZZLE
QUEER NUMBERS
QWERTY
RDBMS CONCEPTS
RE-CALIBRATE COMMAND
READING THE DISK'S DATA
RESETTING THE FDC
RUNTIME ERRORS
SCROLLING THE WINDOW DOWN
SETTING CURSOR POSITION
SETTING CURSOR SIZE
SHELL PROGRAMS
SHORTCUT KEYS
SHUTDOWN TIMER
SIMPSON'S RULE
SORT PROGRAMS
SOURCE FILES
SQL
STACK
STARS
STORAGE CLASSES
STORE A FLOAT VALUE IN THE MEMORY
STRING
STRING LITERAL
SWAPPING WITHOUT TEMP VARIABLE
TECHNICAL APTITUDE
TERMINATION
TOWER OF HANOI
TRANSPOSE MATRIX
TRAPEZOIDAL RULE
TRICKS
TSR AND TSO
TURN ON LOCKS
UNIX CONCEPTS
VERIFYING THE DISK SECTOR
WINDOWS
X TO THE POWER Y
Wednesday, 20 February 2013
SWAPPING WITH OUT TEMP VARIABLE
int swap(int *a,int *b)
{
*a=*a+*b;*b=*a-*b;*a=*a-*b;
}
main()
{
int x=10,y=20;
swap(&x,&y);
printf("x= %d y = %d\n",x,y);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment