- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 2
Re:
Hi guys, i'm new here and new to c/c++ programming. could you guys guide me how to extract some character/number from a char string? Example: char = TAGNAME_C123_V45_S67_M89 i want to extract the numerical number next to the character. The TAGNAME and the number is varies. So my code should … |
|
Re:
Here is a code [CODE] #include<stdio.h> int main(void) { int a; a=f(10,3.14); printf("%d",a); } int f(int aa,float bb) { return (aa+bb); } [/CODE] If I run the code it produces garbage value, but if I declare the prototype of the function before main it produces the correct output as 13. … |
|
Re:
here is the code.... [CODE] #include<stdio.h> int main() { int *k; *k=10; printf("%d %d",k,*k); return 0; } [/CODE] it compile perfectly. but on executing it is giving segmentation fault. where is the problem? |
|
Re:
um ive been asked by my prof to do a program that could possibly arrange 5numbers from lowest to highest..but im kinda new with programing can sumone pls help me THNXX |