C program to check given alphabate is vowel or not using switch case

#include<stdio.h> #include<conio.h> void main() { char ch; clrscr(); printf(“Enter an alphabate:”); scanf(“%c”,&ch); switch(ch) { case ‘a’: case ‘A’: case ‘e’: case ‘E’: case ‘i’: case ‘I’: case ‘o’: case ‘O’: case ‘u’: case ‘U’: printf(“The alphabate is vowel”); break; default: printf(“The alphabate is not vowel”); } getch(); }

C program to print size of different data types

#include<stdio.h> #include<conio.h> void main() { clrscr(); printf(“TypettttSize (bytes)”); printf(“nCharacterttt    %d”,sizeof(char)); printf(“nIntegertttt    %d”,sizeof(int)); printf(“nLong intttt    %d”,sizeof(long int)); printf(“nFloattttt    %d”,sizeof(float)); printf(“nDoubletttt    %d”,sizeof(double)); printf(“nLong doublettt    %d”,sizeof(long double)); getch(); }

Google Gravity: How to Hack Google Homepage (Funny Trick)

Have you ever thought about hacking Google? In practical this is not possible. Do you hate Google or you are get bored of Google? If yes then here is the solution for it. Now you have a chance to play with Google homepage. A programmer named Mr Doob who coded a script named Google Gravity. It allows every components on Google homepage …

Google Gravity: How to Hack Google Homepage (Funny Trick) Read More »

C program to perform arithmetic operations using switch case

#include<stdio.h> #include<conio.h> #include<stdlib.h> void main() { int ch; float a,b,res; clrscr(); printf(“Enter two numbers:”); scanf(“%f%f”,&a,&b); printf(“nMenun1.Additionn2.Subtractionn3.Multiplicationn4.Division”); printf(“nEnter your choice:”); scanf(“%d”,&ch); switch(ch) { case 1: res=a+b; break; case 2: res=a-b; break; case 3: res=a*b; break; case 4: res=a/b; break; default: printf(“Wrong choice!!nPress any key…”); getch(); exit(0); } printf(“nResult=%f”,res); getch(); }

C program to swap two numbers using pointers

#include<stdio.h> #include<conio.h> void main() { int *a,*b,*temp; clrscr(); printf(“Enter two mumbers:”); scanf(“%d%d”,a,b); printf(“Before Swaping:na=%d b=%d”,*a,*b); temp=a; a=b; b=temp; printf(“nAfter Swaping:na=%d b=%d”,*a,*b); getch(); }