Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~532 People Reached
Favorite Forums
Favorite Tags
c x 12
Member Avatar for wal99d

[B][code] #include <stdio.h> #include <math.h> int main() { double op1,op2; char opp; char *res= "2 ^ 1"; sscanf(res,"%d %c %d",&op1,&opp,&op2); printf("%d\n",op1); printf("%c\n",opp); printf("%d\n",op2); printf("====\n"); printf("%d\n",pow(op1,op2)); /* the output is for sure 2 */ } [/code][/B] [COLOR=Blue][B]but it output : 1073741824 <-- ??? I don't know what here so please any …

Member Avatar for wal99d
0
290
Member Avatar for wal99d

[COLOR=Blue][B]Is the following code correct:[/B][/COLOR] [CODE] char * cmd="ls -l"; /* Unix command used for listing */ char * spCmd; spCmd = strtok(cmd , " ");/* it divides the cmd in to tokens */ execvp(spCmd[0] , spCmd);[/CODE] [COLOR=Blue][B]output of this code to execute command that is written in cmd ?[/B][/COLOR] …

Member Avatar for wal99d
0
242