Click here to Skip to main content
Click here to Skip to main content
Alternative Tip/Trick

Tagged as

How to zero your memory?

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


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

Comments and Discussions

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

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150123.1 | Last Updated 2 Aug 2011
Article Copyright 2011 by trotwa
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid