15,906,708 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13922884 (Top 32 by date)
Member 13922884
2-Sep-18 10:51am
View
Ohh.. my bad. I got your point. Thanks a lot.
Member 13922884
2-Sep-18 9:44am
View
Should *p be not replaced with its value it is referring to?
When executed does it not go as case 5: ... ?
Member 13922884
2-Sep-18 8:21am
View
Thankyou.
Member 13922884
16-Aug-18 12:23pm
View
Ok. Thanks again.
Member 13922884
16-Aug-18 10:21am
View
main ()
{
int a=10,b=0,c=7;
If (a?b:c==0)
Printf ("1");
If ((a?b:c)==0)
Printf ("2");
}
In this program brackets are used to evaluate ternary operator before "==" operator. So here i can understand the usage of (). But not in the above program.
Member 13922884
16-Aug-18 10:05am
View
b=i==5?2:4; is comprehensible to me. First ternary operator was evaluated and then its value was passed to b.
But how does putting brackets help in the above statement?
Ternary operator have higher precedence than assignment operator,i know. But is b=7 not equal to (b=7).
Member 13922884
16-Aug-18 8:28am
View
Ok Thankyou !!
Member 13922884
15-Aug-18 4:11am
View
Ok. Thank you!!
Member 13922884
15-Aug-18 3:49am
View
Ok. By default, character literal are treated as integer in C. Hence i am getting the output as 4 in 1st case. In the second case, since i have declared it as a char data type the sizeof () returns its size as 1 (though in memory it takes 4 bytes).
Correct me if i am wrong in my understanding here.
Thanks.
Member 13922884
14-Aug-18 15:55pm
View
Deleted
Thanks.I read about the padding and packaging in memory and i believe you are talking about that only.
Considering that also,sizeof (a) is consuming 1 byte of memory. Why then?
I am sorry if my query is lame.
Member 13922884
10-Aug-18 3:40am
View
Thank you. It was an issue of library only. Resolved now. Thanks again.
Member 13922884
8-Aug-18 17:56pm
View
should i download Dev c++. Are there any issues with this IDE?
Member 13922884
8-Aug-18 11:58am
View
I made no changes to the program except adding NULL in initgraph().
I also added the path of the include folder in the "search directories" option in the project build option.
I understand that WinBGim is quite old. Since i am new to the programming i found this only on the internet hence started to work on it.
Member 13922884
8-Aug-18 11:16am
View
It is not giving warning now. But i am not getting the output and getting the run time error.
"Visual Studio Just-In-Time Debugger
An unhandled win32 exception occurred in Test1.exe [3992].
Just-In-Time debugging this exception failed with the following error:
No Installed debugger has Just-In-Time debugging enabled. In Visual
Tools/Options/Debugging/Just-In-Time.
Check the documentation index for 'Just-in-time debugging, errors' for
more information."
Member 13922884
8-Aug-18 9:39am
View
Same warning as before.
Member 13922884
8-Aug-18 8:53am
View
Thanks. But it is also not working. Should i make all the changes again?
Member 13922884
8-Aug-18 6:55am
View
My apologies.The error message is displayed for initgraph ().
Member 13922884
5-Aug-18 14:58pm
View
Ok. Learned something new. Thanks a ton !!
Member 13922884
5-Aug-18 8:15am
View
I tried using fgets function today, not in this program but in some other to get data from the user. But, i found that fgets() is used to read data from a file. How come are you using it to get the data from the user using fgets().
Member 13922884
2-Aug-18 7:17am
View
Thank you. It works now.
Member 13922884
2-Aug-18 7:16am
View
Thanks
Member 13922884
2-Aug-18 7:16am
View
Thank you for your suggestion. I tried it.
Member 13922884
1-Aug-18 16:43pm
View
Off and on?
Member 13922884
1-Aug-18 5:09am
View
Thank you !!
Member 13922884
1-Aug-18 5:09am
View
Thank you !!
Member 13922884
25-Jul-18 12:49pm
View
Ok, got that. Thanks a lot.
Member 13922884
24-Jul-18 15:57pm
View
Deleted
Ok. Thankyou.
Member 13922884
24-Jul-18 15:57pm
View
Deleted
Ok. Thankyou.
Member 13922884
24-Jul-18 15:57pm
View
Ok. Thankyou.
Member 13922884
24-Jul-18 13:08pm
View
Thank you. It worked. But i have a doubt.
The length of two strings i am taking is 4 and 7. So total is 11. Then why is it taking only 4 garbage values. Should it not display garbage values upto 20 counting i.e. 9.
Member 13922884
23-Jul-18 16:48pm
View
Thanks for your response. But i am just a beginner and have not reached upto pointer till now.
I wanted to know error in my code.
Member 13922884
23-Jul-18 14:16pm
View
That was the maximum limit i gave. I am not exceeding the 20 limit.
Show More