Search the web
Sign In
New User? Sign Up
c4swimmers · India's First C/C++ Programming Portal
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
questions   Message List  
Reply | Forward Message #8652 of 9109 |
Re: questions


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]
>





Tue Aug 19, 2008 1:31 pm

kssreddy22
Offline Offline
Send Email Send Email

Forward
Message #8652 of 9109 |
Expand Messages Author Sort by Date

hello group this is sunil a member of ur group my friend who had a campus written test from infosys had the foll strange questions in c 1) write a program...
sunil kumar
sunilkumardaga
Offline Send Email
Dec 27, 2003
5:58 pm

hi sunil Hello world or some other statement can be wrritten by placing it inside a condition like if condition.. The code to print hello world without using...
Sandeep Slathia
s_s_slathia
Offline Send Email
Dec 28, 2003
10:29 am

Hey sunil, This not a tough question, its just tricky. 1) Program that prints hello world without semicolon: int main ( ) { while ( ! printf("Hello World\n") )...
<Manoj Kumar A>
garnatae
Offline Send Email
Dec 28, 2003
10:33 am

... Hey manoj..hi wel.. i tried both ur sugestion on compiler. 1st 1 worked.. in second ,weher u are printing hello without using printf... i am getting an...
ambarish_22
Offline Send Email
Aug 8, 2008
2:15 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...
arvind yadav
arvind_ydv@...
Send Email
Aug 7, 2008
7:58 pm

... From: arvind yadav <arvind_ydv@...> Subject: [c4swimmers.net] questions To: c4swimmers@yahoogroups.com Date: Wednesday, 6 August, 2008, 11:55 PM hi...
ambarish kulkarni
ambarish_22
Offline Send Email
Aug 8, 2008
2:16 pm

.difference between array and structure???   ans:- there major difference is date array is predefined data type where as strctures are use to create user...
parag radke
parag_niceboy007@...
Send Email
Aug 9, 2008
7:34 pm

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...
kssreddy22
Offline Send Email
Aug 19, 2008
4:25 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help