No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
int a; scanf("%d",&a); here a is the variable and &a is the address of the variable. so, we can understand that the second parameter need the starting address of the variable; char str[10]; scanf("%s",str); here str is not variable, it is the address of str[0]. i.e. the starting address of …
I tried this code for servo. but did not work. [CODE]#include <REGX51.H> sbit pulse = P2^0; // for give pulse to survo void delay()//10us delay { TMOD=0x02; TH0=-10; TR0=1; while(TF0==0); TR0=0; TF0=0; } void main() { int i; while(1) //20ms pulse width { for(i=0;i<100;i++) //1ms high { pulse=1; delay(); } …
it is so easy to pass variable from php to javascript. Lets consider there are two scripting in one page like below. <script type="text/javascript">//javascript coding var id; </script> <?php //php coding $ x=90; ?> now we will pass the value of x from php to javascript; So, lets write another …
I want to make a comment box in a web page which will take a comment from the user and save it to the database and show all comments including new comment without reloading by ajax or jscript. Please help me someone with coding. Please.
The End.
mehrab