Then why only print 2147483619? it could have printed 728 or 753 or 283728983 something like this.. there must be some logic , it is not garbage value
Type: Posts; User: ranadas
Then why only print 2147483619? it could have printed 728 or 753 or 283728983 something like this.. there must be some logic , it is not garbage value
Why was it wrong on my part to use "void main"? And can you please tell me why the result came out to be 2146483619 , i still don't understand even after reading answers on stack overflow.
#include <stdio.h>
void main()
{
printf("%d",59.00); //prints out 2147483619
}
:confused:
I can't understand the output of this program! Please help!
In Chefland, there is a very famous street where N types of street food (numbered 1 through N) are offered. For each valid i, there are Si stores that offer food of thei-th type, the price of one...
Thanks Man, you are a life saver!! Kudos man:D
What's the use of %h , %u , %i when we can simply use %d for all the purposes.
For example;
#include <stdio.h>
int
main() {
Alright! we all have heard about escape sequences in C like '\b\,'\a' , etc.
I have a question regarding it.
As we all can notice , escape sequences are formed by joining two characters 1.'\' ,...
Furthermore are library files automatically included or if I specify <stdio.h> then the library file for that particular header file is included?
ok so if I delete crt.lib printf() and scanf() won't work anymore right?? let's try it
Ok So can I make a library file for myself and later on use it for m own personal use??
If possible then how?:eek::confused:
Here is a screenshot of my Pelles C directory!
15286
Here is another screenshot of my Library folder in Pelles C
15287
So are they machine code?
Ok Thanks Adrian. I'm a simple young adult 20 years old , dropped out of college with a will to learn programming. I earn very less , so all I learn is from you guys , don't have money to buy many...
Whenever I write the the following code in Pelles C it runs fine without including the stdio.h header file!! I donot know why??
I'm running Pelles C!
Forgive me for using deprecated Trigraphs...
Furthermore what is _CRTCHK(printf , 2 , 3) int __cdecl fprintf(............etc).. what does it mean?
Im a beginner , I know C but want help for advanced topics. Please help!
Ok Adrian so which library is it compiled into? Further more what are libraries? Are they in machine language? They are not .exe file , so they contain machine code which can't be executed but used...
for example
int *p' //means an integer pointer
int p = 4*8;//means a integer number
Can you note that I am using the same operator in two completely different scenarios and the operator...
Below is the screenshot of code snippet from stdio.h
15283
Below is the attachment of my stdio.h file which is Pelles C file.
15284
Please look at it and help me find out where is...
If a digraph sequence occurs inside another token, for example a quoted string, or a character constant, it will not be replaced.
Link: Digraphs and trigraphs - Wikipedia
That is what is written in the book. There is a post on stack overflow about this. Here
Can you please explain it. I can't seem to understand the answer to the question in that post. Please :)
The following code throws error ! :(
#include <stdio.h>
int main(void)
{
int array[][]={{1,2,3},{123,244,232}};
}
Hey GReaper. How long have you been programming? Because you seem to help people more than anyone else!. I'm Thankful for that . So have you thought anything about creating the next big million...
15275
this is what tutorialspoint.com has in its float.h tutorial.
can someone implement by writing a program using all these?
Help me! I have no guidance, I am a sole warrior and a college...
Thanx Man!
Oh so it checks a single character is hexadecimal or not , and not whether the passing integer is hexadecimal or not. So for 'E' it shows hexadecimal but what if I pass "FF" as a char string ? In...