Posts

Starting C : A series of Chapters to learn C

So far you have gone through the solved examples in my Blogs.I have received a lot of emails demanding “Step by Step learning of C Language'” in easy to understand language with illustrative examples. So here we go…. Chapter 1: Basic C Program Structure Prior to learning,the basic program structure, here are some rules to be followed while writing program, * C being case-sensitive ; entire program should be typed in Small Case letters(By entire program, we mean all the commands and keywords being used in the program). * Each new statement should begin with a new line. * To mark the finishing of each statement, place a semicolon(;) at the end of statement. The Basic C Program Structure #include <headerfile.h>                      (1) main()                                                 (2) {                                                          (3) //statements                             (4) }                                                         (5)   Understanding

Understanding Working of Text & Binary File in C

Text file // assume that you have already created a   program file first.c and you want to display its contents on screen Ex 1: Program to show contents of any TEXT File on screen #include <stdio.h> main() {             FILE *fp;             char ch;             clrscr();             fp=fopen(“first.c”,”r”);             if (fp==NULL)             {                         printf("Cannot open file");                         getch();                         return;             }             while((ch=getc(fp))!=eof)             {                         printf(“%c”,ch);                         getch();   }             fclose(fp);             printf(“\nPress any key to return”);             getch();} Ex 2: Program to create a copy of first.c #include <stdio.h> main() {             FILE *fp,*fp1;             char ch;             clrscr();             fp=fopen(“first.c”,”r”);             fp1=fopen(“cfirst.c”,”w”);             if (fp==NULL)             {      

How to Creat a Passport Size PHOTO Sheet (32 Photos)

Image
How to create a Passport size Photo Sheet Photoshop is a magic and it is a boon for designers. In Photo Studios They Also using this only. While you going to take a photo in a photo studio they will collect Maximum Rs.50 for 5 Photos. 1. Open Your Image In Photoshop  2. Now Goto Image–> Image Size Change The Image Size In The Document Size Are. Be Sure you might make changes in Cm. Also Resolution Might Be 200Pixels. Adjust The Passport size If You Need a Little bit change. (Don’t Forget To uncheck “ Constrain Proportions “) (Make Changes only inside the Document Size) 3. Edit–> Definition Pattern 4. Now Open a New Image. ( File –> New ) First Don’t care About The Image Size. After You Get a blank image in white color Goto Image–> Image Size Then Do Like The Below Image. (Make Changes only inside the Document Size) Here I choose The Size 12×8(WxH). You can also Make This As