No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi i just wanted to ask whether we cud use #include<string> and declare a data type called 'string' eg. string ch;? and where is "using namespace std" used? |
|
Re:
[code=c] main( ) { int i=10,j=20; printf("%d%d",&i,&j); return 0; } [/code] When i executing this code: I got the address values like -12, -10, -20 Is it the address are in negative values or I am doing a mistake in the program. please give the solution it's urgent. |
|
program to display 10 multiples of a number [code=c] #include<stdio.h> main() { int m,n,o; m=5; for(n=0;n<11;n=n+1) o=m*n; printf("Multiples are %d",o); }[/code] |
|
the program asks to calculate the power of a number, for eg. if 2 is entered as the base and 3 is th power it should display 8. |