16,023,224 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 Visual Basic questions
View Javascript questions
View .NET 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 Yuvaraj Gogoi (Top 34 by date)
Yuvaraj Gogoi
3-Oct-13 12:52pm
View
Thanks.
Yuvaraj Gogoi
17-Feb-11 3:44am
View
Thanks!!!:-)
Yuvaraj Gogoi
17-Feb-11 3:26am
View
Thanks a lotz!!!
Yuvaraj Gogoi
17-Feb-11 3:25am
View
Thanks!!!
Yuvaraj Gogoi
16-Feb-11 6:10am
View
What I can get from above is that the local const datum(not static) is stored in global stack? Is this really true? Where is this global stack located on stack? I am sorry for my ignorance.
Thanks for the input!Yuvaraj
Yuvaraj Gogoi
16-Feb-11 1:43am
View
Yes, its true for static const and extern const or const folding. For local const, there is some other behaviour.
Thanks again for your post.Cheers,Yuvaraj
Yuvaraj Gogoi
16-Feb-11 1:40am
View
I also think so. I also thought that const are always stored in data segment. But it is not so now. For local const, it is stored also in stack as SA has rightly explained. Here I am talking about Visual Studio 2010 compiler and GNU compiler.
Please correct me if I am wrong.
Anyway thanks a lot for your kind effort.
Cheers,
Yuvaraj
Yuvaraj Gogoi
16-Feb-11 1:23am
View
Thanks!!!
Yuvaraj Gogoi
16-Feb-11 1:13am
View
hehehehe.... No, not at all. But I had many misconceptions with "const" keyword. I hope I didn't disturb you!!!
Thanks for your kind reply!
Yuvaraj Gogoi
15-Feb-11 6:06am
View
nonsense....
Yuvaraj Gogoi
15-Feb-11 5:40am
View
Thanks a lotz!! I had many misconceptions which is now clear.
Also I have one more query regarding const data that are stored. How is it internally implemented? How is it made non-writable but can be initialized? Also what does const_cast do internally to a pointer such that the const-ness is removed?
I think I will make a separate thread for this because I feel this topic is little bit different.
Yuvaraj Gogoi
14-Feb-11 6:28am
View
Is contant char * stored in stack also inside the function?
e.g. char *str = "Hello";
Yuvaraj Gogoi
14-Feb-11 5:54am
View
Thanks for the answer?
Is Data Execution Prevention only for Windows? Or is this valid for Linux also?
Yuvaraj Gogoi
27-Jan-11 4:53am
View
Good example!!
This is because class C is not a friend of class final_lock.
Yuvaraj Gogoi
27-Jan-11 4:35am
View
Yes, I agree to Emilio. It is because of
friend class Base;
in class final_lock. I hope everything is clear now. Thanks to all for spending their precious time in this topic.
Yuvaraj Gogoi
27-Jan-11 3:44am
View
compiler switches are the default ones. I have not changed any of them.
Yuvaraj Gogoi
27-Jan-11 3:42am
View
I am using g++ compiler(GNU compiler). Version is 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux)
Yuvaraj Gogoi
27-Jan-11 3:33am
View
///most-derived-class's ctor directly invokes the virtual base class's ctor.
So if there is no virtual inheritence, then the base class constuctor is called by the immediate next derived constructor. Am I right?
Thanks a lot for the answer!!!
Cheers!!!
Yuvaraj Gogoi
Yuvaraj Gogoi
15-Oct-10 6:15am
View
Thanks for the answar!
Yuvaraj Gogoi
3-Sep-10 3:37am
View
////When strings are in memory, it's up to the program to decide what is the most efficient representation
////for its purposes.
Does it mean that for space(" "), a notepad in windows is not able to find the efficient representation and so displaying some magic characters?
Thanks a lot for the answar!
Yuvaraj Gogoi
29-Aug-10 6:03am
View
Thanks for the answar!
But I still didn't get any answar for my second question!
We see a magic character something like '0' but it is not '0' for "space" if we open the binary file in notepad in Windows! Does it mean that the notepad is unable for conversion from binary to ascii. If this is the case then, how does it do the coversion for other ascii characters like "A", "B", ...?
I have created the binary file in C. Thanks again for your reply!
Yuvaraj Gogoi
29-Aug-10 5:24am
View
Thanks for your answar!
Yuvaraj Gogoi
19-Aug-10 12:46pm
View
////////////////////
'far' pointers have an explicit selector. However when you do pointer arithmetic on them the selector isn't modified.
'huge' pointers have an explicit selector. When you do pointer arithmetic on them though the selector can change.
////////////////////////
By selector, do u mean to say it using the same selector in far pointers?Then what is its difference to near pointers? It also refers to same segment!
Thanks a lot for replying!
Yuvaraj Gogoi
19-Aug-10 12:43pm
View
I have google it! But I didn't get much of the difference between far and huge pointers,except that far is not normalized and huge is normalized!
Yuvaraj Gogoi
4-Jun-10 4:17am
View
Thanks for the clarification!
Yuvaraj Gogoi
3-Jun-10 4:21am
View
So providing multiple default arguments for all, but the first will work with explicit. Am I clear?
Thanks again for the input!
Yuvaraj Gogoi
3-Jun-10 2:18am
View
thanks again!
Yuvaraj Gogoi
3-Jun-10 2:16am
View
I am not getting what your last line tells "has a clue only in constructor taking one argument, since are the ones used in conversions".
If we provide constructor with more than one arguement and with default arguements,will the keyword explicit work?
Thanks a lot for your answer!
Yuvaraj Gogoi
1-Jun-10 3:46am
View
So implementation of explicit is primarily the compilers job.
Thanks for the answer...
Yuvaraj Gogoi
1-Jun-10 2:52am
View
So its the compiler's job to mark constructors as explicit if given.
Thanks for your answer!
Yuvaraj Gogoi
1-Jun-10 2:10am
View
Thanks for the answer... Its pretty clear now!
Yuvaraj Gogoi
31-May-10 11:42am
View
Can I know why if explicit keyword is used and even the copy-initialisation syntax won't work? I have this doubt because copy-initialisation syntax doesn't involve any automatic type casting!
Thanks for your answer again!
Yuvaraj Gogoi
31-May-10 11:04am
View
Reason for my vote of 1
Sry... the answer was not what I expected!
Yuvaraj Gogoi
31-May-10 11:03am
View
But my question was on explicit copy constructor not explicit constructor!
Anyway thanks for the answer.
Show More