Click here to Skip to main content
13,095,218 members (81,521 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


Posted 2 Aug 2011

How to zero your memory?

, 2 Aug 2011
Rate this:
Please Sign up or sign in to vote.
char szTest[128] = { 0 };;)
char szTest[128] = { 0 };



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Germany Germany
No Biography provided

You may also be interested in...

Comments and Discussions

GeneralRe: Oh yes, I will... :) Pin
Nuri Ismail9-Aug-11 3:58
memberNuri Ismail9-Aug-11 3:58 
GeneralRe: Please repost testing results here. It must be interesting. Pin
Alexander Voronin9-Aug-11 3:56
memberAlexander Voronin9-Aug-11 3:56 
GeneralRe: 'How do you think could it be hit on performance?' Actually ... Pin
Nuri Ismail9-Aug-11 3:45
memberNuri Ismail9-Aug-11 3:45 
GeneralRe: IC for now. Thanx for explanation. This behaviour also prese... Pin
Alexander Voronin9-Aug-11 3:20
memberAlexander Voronin9-Aug-11 3:20 
GeneralRe: Hi Alexander, It's part of C++03 Standard. For example le... Pin
Nuri Ismail9-Aug-11 3:03
memberNuri Ismail9-Aug-11 3:03 
GeneralRe: Thank you very much Alok. I'm glad you like it! :) Pin
Nuri Ismail9-Aug-11 3:05
memberNuri Ismail9-Aug-11 3:05 
GeneralRe: Yes, it is part of C++03. You can try it and it should work... Pin
Nuri Ismail9-Aug-11 3:08
memberNuri Ismail9-Aug-11 3:08 
GeneralRe: Where did you get this? Standard (let's take this http://www... Pin
Alexander Voronin8-Aug-11 22:41
memberAlexander Voronin8-Aug-11 22:41 
GeneralRe: nice thing!... no votes for comment yet, otherwise my 5 for ... Pin
ThatsAlok3-Aug-11 6:33
memberThatsAlok3-Aug-11 6:33 
GeneralRe: Really? ...never tried it... guess we learn something new ev... Pin
Albert Holguin3-Aug-11 4:18
memberAlbert Holguin3-Aug-11 4:18 
Generalanyway ur tips is useful as well Pin
ThatsAlok3-Aug-11 6:32
memberThatsAlok3-Aug-11 6:32 
Generalmight be i am talking about zeroing memory during data excha... Pin
ThatsAlok3-Aug-11 6:27
memberThatsAlok3-Aug-11 6:27 
GeneralYes, of course. ;) Another one ? The fastet way I know: v... Pin
trotwa2-Aug-11 21:19
membertrotwa2-Aug-11 21:19 
GeneralReason for my vote of 4 This works too, but only for static ... Pin
Albert Holguin2-Aug-11 11:44
memberAlbert Holguin2-Aug-11 11:44 
GeneralRe: For default initialization of dynamic sized arrays C++ provi... Pin
Nuri Ismail2-Aug-11 21:52
memberNuri Ismail2-Aug-11 21:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170813.1 | Last Updated 2 Aug 2011
Article Copyright 2011 by trotwa
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid