Tuesday, January 28, 2014
Blogging
Blog
A blog is a discussion or
informational site published on the world wide web (www) and consisting of
discrete entries ("posts") typically displayed in reverse
chronological order (the most recent post appears first). Until 2009 blogs were
usually the work of a single individual, occasionally of a small group, and
often covered a single subject. More recently "multi-author blogs"
(MABs) have developed, with posts written by large numbers of authors and
professionally edited.
Many blogs provide commentary on a particular subject; others function as
more personal online diaries others function more as online brand advertising
of a particular individual or company. A typical blog combines text, images,
and links to other blogs, Web pages, and other media related to its topic. The
ability of readers to leave comments in an interactive format is an important
contribution to the popularity of many blogs. Most blogs are primarily textual.
Blogging
Monday, January 27, 2014
Google Adsense
Google Adsense
Google AdSense is a program run by Google that allows publishers in the Google Network of content sites to serve automatic text, image, video, or interactive media advertisements that are targeted to site content and audience. These advertisements are administered, sorted, and maintained by Google, and they can generate revenue on either a per click or per impression basis.

Why adsense
Many websites use AdSense to monetize their content; it is the most popular advertising network. AdSense has been particularly important for delivering advertising revenue to small websites that do not have the resources for developing advertising sales programs and sales people to generate revenue with. To fill a website with advertisements that are relevant to the topics discussed, webmasters place a brief HTML code on the websites' pages. Websites that are content-rich have been very successful with this advertising program, as noted in a number of publisher case studies on the AdSense website. AdSense publishers may only place three ad units per page.How to run graphics program using turbo C
How to run graphics program using turbo C
How to run graphics program using turbo C
Follow the below steps :
- Go to that drive where your Turbo C folder reside.
- Now open TC folder.
- Now you will see a folder with name BGI
- Open BGI folder .Find "EGAVGA.BGI" & CGA.BGI
- Now paste these two files into Bin Folder.
- Open Turbo C and write your desired graphics program.
- Now click on option.
- Then click on linker ,then include graphic.
- Now compile and run ,graphic will run.
Simple C program to calculate area of circle r1 and r2
C Program to calculate area of circle r1 and r2
#include<stdio.h>int main()
{
float r1,r2,area;
printf("Enter r1 of circle:");
scanf("%f",&r1);
printf("Enter r2 of circle:");
scanf("%f",&r2);
area=3.146*(r1*r2);
printf("\nr1=%f",r1);
printf("\nr2=%f",r2);
printf("\n\narea=3.146*(%f*%f)",r1,r2);
printf("\n\nArea of circle=%f",area);
return 0;
}
The output of above program is:
Sunday, January 26, 2014
Simple C Program to convert the Celsius value to Fahrenheight value
#include<stdio.h>
int main()
{
float celsius,fahrenheit;
printf("Please enter the celsius temperature:");
scanf("%f",&celsius);
fahrenheit=(1.8*celsius)+32;
printf("\nC=%f",celsius);
printf("\nF=(1.8*C)+32\n");
printf("\n(1.8*%f)+32=%f",celsius,fahrenheit);
printf("\n\nFahrenheit=%f",fahrenheit);
return 0;
}
int main()
{
float celsius,fahrenheit;
printf("Please enter the celsius temperature:");
scanf("%f",&celsius);
fahrenheit=(1.8*celsius)+32;
printf("\nC=%f",celsius);
printf("\nF=(1.8*C)+32\n");
printf("\n(1.8*%f)+32=%f",celsius,fahrenheit);
printf("\n\nFahrenheit=%f",fahrenheit);
return 0;
}
Note
Formula is :
F=(9/2*C)+32
For convenience i have written , 9/2= 1.8
F=(1.8*C)+32
The output of above program: Thursday, January 23, 2014
What is pointer and why pointers are used in C programs
Pointer is the address of an object(i.e a specific memory location). it can refer to different objects at different times. Pointers contain memory addresses as their values.
pointers are used in C programs for different purposes.
pointers are used in C programs for different purposes.
- To return more than one value from a function(using pass by reference).
- To create and process strings.
- To manipulate the contents of arrays and structures.
- To construct data structures whose size can grow or shrink dynamically.
Subscribe to:
Posts (Atom)