No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Look into this code: #include <stdio.h> main() { int p,n,r; float si; scanf("%d %d %d", &p, &n, &r); si=p*n*r/100; printf("SI = %f", si); } Output of this program is 100 100 100 SI = 169.00000 **and also this:** #include <stdio.h> main( ) { int p, n ; float r, si … |
|
The graphics.h header file is not running in turbo c++ 4.5, why? [CODE]#include<graphics.h> #include<conio.h> void main() { int gd=DETECT, gm; initgraph(&gd, &gm, "c:\\turboc3\\bgi " ); circle(200,100,150); getch(); closegraph(); } [/CODE] Please give me a link to download c-graphics tutorial? |
|
Whats difference between runtime error and compile time error? |
|
|
|
[CODE]main() { char name[10],s[12]; scanf("\"%[^\"]\"",s); }[/CODE] How this scanf will scan? |
|
[CODE]while((fgets(receiving array,50,file_ptr)!=EOF);[/CODE] How this while is executed? |
|
|
|
while scanning string we won't use ambers '&' why?? |
|
what's mean by definition and declaration in c? how u call this: int i; |
|
Hi, every one know that scanf statement should use "&" ambers ion symbol, but why it is not used while getting a string. eg: main() { int a; char str[10]; scanf("%d",[COLOR="Red"]&[/COLOR]a); scanf("%s",str); -->why "&" sybbol is not used in getting string? } |