Hi Aravind,
Macros do have a disadvantage. you can not use large size of macros
in your program as if the size of macro's increses the program
execusion will become slow.
--Shiva
--- In
c4swimmers@yahoogroups.com, parag radke
<parag_niceboy007@...> wrote:
>
> .difference between array and structure???
> ans:- there major
> difference is date array is predefined data type where as
strctures are
> use to create user defined data type.in simple words if u want to
store
> no of data of same kind (such as int,char ,float ) in contigues
mamory
> loacations then array is the method but if u want to create aal
> together a differnt data type such as
> add having following attributes (streat no,house no,state) ten u
have to use structure.
> struct add
> {
> int street_no;
> char house_no;
> char state[10];
> }
> .
>
> 2.difference between array and strings???
>
> ans:- conceptually both are same string are just carrector array
but 1
> difference is that strings are null terminated i.e. the last node
of
> strings are automatically field with null by compiler.where this
is not
> the case with int or float array.
>
> 3.disadvantages of macros ???
>
>
>
>
> --- On Fri, 8/8/08, ambarish kulkarni <ambarish_22@...> wrote:
> From: ambarish kulkarni <ambarish_22@...>
> Subject: Re: [c4swimmers.net] questions
> To:
c4swimmers@yahoogroups.com
> Date: Friday, August 8, 2008, 1:40 PM
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --- On Wed, 6/8/08, arvind yadav <arvind_ydv@yahoo. co.in> wrote:
>
> From: arvind yadav <arvind_ydv@yahoo. co.in>
>
> Subject: [c4swimmers. net] questions
>
> To: c4swimmers@yahoogro ups.com
>
> Date: Wednesday, 6 August, 2008, 11:55 PM
>
>
>
> hi frnds i have sum qquestions.. plz post their replies..
>
>
>
> 1. difference between array and structure???
>
>
>
> 2.difference between array and strings???
>
>
>
> 3.disadvantages of macros ???
>
>
>
> wel..i am answering this frm my knowledge arvind...if i am plz
correct people.
>
> 2.array and string is same..character array i s also known as
string..
>
> so u can say string is a sub type of a array.As array can be of
any data type.( int,float,char. ..).
>
>
>
> 1. array can be of single data types.So in int array u canot input
float value.In structures u can declare any type of ara,may be char
array or int array or float array.
>
>
>
> 3.I dont think macros has any disadvantage, do tell me.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Download prohibited? No problem. CHAT from any browser, without
download. Go to
http://in.webmessen ger.yahoo. com/
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> [Non-text portions of this message have been removed]
>