Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am coding a program and I wonder on which OS my program will run.
How can I get the OS info (ex - Windows 10 or not) at the code?
※ I just want to show different results whether it's Windows 10 or not
#ifdef _WIN32
printf("Windows\n");
#else
printf("Not Windows\n");
#endif
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 days ago.
Improve this question
How can write a code for power of any number in c language in program I have given base & exponent using for loop then inside for loop define power=power*base &then print base, exponent
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am working on one embedded project based on c language.
Can you explain me following declaration meaning:
#define FILE_APPVENDORPARAM APP_NAME"VENDOR"
Before the line you show, there must be another #define that defines APP_NAME, for example like this:
#define APP_NAME "SomeName"
Then this line:
#define FILE_APPVENDORPARAM APP_NAME"VENDOR"
defines FILE_APPVENDORPARAM as "SomeName""VENDOR" which is the same thing as "SomeNameVENDOR"
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am doing a project on railway reservation system, my program is working fine, but when I close the program and then again start booking tickets,seat no again takes the previous value, I'm doing the project in c.
You'll need to write all of the data to a file before the program closes, and then read the data from the file when the program starts again.
That's right.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to have some information about (#include)
in the beginning of my C program.
What does this library do?I have search before and found nothing.....
#include is a preprocessor directive, not a library. You can read below Wikipedia page about it.
https://en.wikipedia.org/wiki/Include_directive
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
i have to make my random function to generate through the current system time generate between 0 to 9
You can use the modulus operator:
milliseconds % 10;
See here: http://www.cprogramming.com/tutorial/modulus.html