CrazyEngineers Forum

******************************************
Welcome To CrazyEngineers (CE) – an online community of engineers from all over the world! With the younger CEan at 84 and the youngest at 16, CE boasts of professional engineers, students, professors, entrepreneurs, CEOs, geeks & nerds. We exchange innovative ideas, share knowledge, help each other and expand our worldwide network of engineers! You need not have a formal degree in engineering to be a part of CrazyEngineers! Need we say more?
Join CE! | Be a CE Ambassador! | Forgot password? | Sponsor CE | Contact Us
Navigation
Go Back   CrazyEngineers Forum > CE : Technical Discussions > Computer Science & IT Engineering
Reply

  #11 (permalink)
Old 17th August 2008, 02:18 PM
CE - Newbie
 
I'm a Crazy cse Engineer
Join Date: 10th July 2008
Posts: 3
Smile Re: Definition and declaration

Declaration of variable:
declaration - u can declare variables
eg:int a;
here variable 'a ' is declared as integer type that means u can store integers in variable a .
///ly if u decalre 'a' as char , you can store characters in a
eg: char a;
Definition:
In functions function definition plays an imp. role .
EG:
void fun()//fun definition
{
printf("thanx");
}

that means here we r not declaring but instead we r writing some code in a function.
shravya is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #12 (permalink)
Old 18th August 2008, 11:15 AM
CE - Newbie
 
I'm a Crazy computer science Engineer
Join Date: 8th April 2008
Posts: 8
Default Re: Definition and declaration

hi friends........
Declaration - u r telling the compiler in advance dat u will be using that function in future. this include d data type.name of the function and arguments
Defination - this means dat u r giving functionality or writig body for the function ,what actually a function is going to do
mata is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)
Old 24th August 2008, 02:37 PM
CE - Apprentice
 
I'm a Crazy Computer Engineer
Join Date: 24th July 2008
Posts: 46
Default Re: Definition and declaration

In C --- in declaration memory is not allocated
--- in definition memory get allocated
niraj.kumar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +5.5. The time now is 10:53 PM.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Member comments are owned by the poster. Copyright © 2005-2008 CrazyEngineers.com. All rights reserved.Ad Management by RedTyger