ASCII Chart
Welcome to my blog
.If you’re new here, you may want to subscribe to my full RSS feed. Thanks for visiting!
After seeing this chart if you want to print say square root symbol all you have to do is specify the ASCII value for %c in printf
i.e to print square root..
printf(”%c Hi! [...]
atoi,atol and atof functions
These functions are available under stdlib.h .These are very unknown functions.Lets see what these do..
atol()
atol returns the value in terms of long datatype of the string containing numbers.the syntax is
atol(stringvariable)
ex: consider the following program
Saving the output in a text file
consider the following c program
#include<stdio.h>
#include<conio.h>
main()
{
int i,n;
clrscr();
printf(”Enter limit\n”);
scanf(”%d”,&n);
printf(”I will print %d times\n”,n);
for(i=0;i<n;i++)
printf(”I luv C\n”);
}
the output will be
How C Compiler decides the Garbage values in case of data overflow
Garbage value in case of data overflow
I did some intense R&D for garbage values and found these facts.After understanding these concepts u can tell what will be the garbage value to be stored in a variable in case of dataoverflow.
Here are some of the basic facts required to proceed
In case of windows(TC),
The space allocated [...]
Dynamic Output in C
Dynamic output
consider the following program
#include<stdio.h>
int main()
{
long double a=3.14159265;
printf(”Value of pi=%.4Lf”,a);
return(1);
}
the output of the program will be
Value of pi=3.1416
wouldn’t it be nice if we allow the user to choose how the precession of the answer would be??
that is the output should be like this
Enter precision
6
The value of pi precised to 6 decimal number is 3.141593
Well in [...]

