No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
The reason you are getting 0 is that when you hit enter, it is taken by fgets() as an input which then goes to strtol() and it gives result as 0. Add an extra getchar() after response = getchar(); #include <stdio.h> #include <stdlib.h> int main(void) { char response, text[255]; int …
Hello I am getting error as **segmentation fault** when my file contains large number of line(approx. 44000. However if I run the same program with lesser number of lines, it works fine. I am not getting the reason for this error and how to rectify it. int main() { FILE …
I am trying to create a basic program with a user defined header file.I created the project in visual studio. #test1.cpp # #include <stdio.h> #include "multiply.h" int main() { int y; y=multiply(5,10); printf("%d\n",y); printf("%s","jigar"); getch(); return 0; } # multiply.h # int multiply(int a,int b); # multiply.c # #include "multiply.h" …
The End.
jigar23