May 12, 2006 #1 D desaipa Member level 2 Joined Jan 20, 2005 Messages 53 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,286 Location india Activity points 487 need help about c plz can any one tell how to define a veriable as read only in c programming
May 12, 2006 #2 E ehsanelahimirza Full Member level 6 Joined Feb 24, 2006 Messages 334 Helped 28 Reputation 56 Reaction score 7 Trophy points 1,298 Activity points 3,570 Re: need help about c hi when a variable is declared as int char or float, it can change values. but when u add "const" to any of them they r not going to change value if initilized.
Re: need help about c hi when a variable is declared as int char or float, it can change values. but when u add "const" to any of them they r not going to change value if initilized.
May 13, 2006 #3 T thendral Newbie level 5 Joined May 3, 2006 Messages 9 Helped 1 Reputation 2 Reaction score 0 Trophy points 1,281 Activity points 1,343 Re: need help about c Using "const" keyword you can perfom read only operation. Bcoz once initialized its value won't changes
Re: need help about c Using "const" keyword you can perfom read only operation. Bcoz once initialized its value won't changes