Results 1 to 4 of 4

Thread: Difference between Implicit and Explicit Declaration

  1. #1
    Join Date
    Jan 2009
    Location
    indore
    Posts
    8

    idea Difference between Implicit and Explicit Declaration

    What are the Diffrence between Implicit and Explicit Declaration. Plz give me the Answer.

  2. #2
    Join Date
    May 2008
    Posts
    53

    re: Difference between Implicit and Explicit Declaration

    What is the difference between implicit and explicit meaning?

    Hope this help you : Explicit meaning is when the words tell you exactly what the situation is. These are things like rules, the weather on a specific day and other concepts that are very specific and not open to interpretation.

    Implicit is something you understand from the choice of words (nuance is a fancy word for this) or otherwise figure out from your own experience. For instance, if you are reading a book on Sherlock Holmes and you read about the moors and it being a dark and dreary night...you will feel it from your own experiences with rainy nights. You know that you have limited visibility, will not get a suntan that night and other subjective information.

  3. #3
    Join Date
    May 2008
    Posts
    271

    re: Difference between Implicit and Explicit Declaration

    Quote Originally Posted by vinodpathak_214 View Post
    What are the Diffrence between Implicit and Explicit Declaration. Plz give me the Answer.
    By that I think you might be talking about the implicit and explicit declaration using some programming languages such as C++, C#, VB, etc...

    Generally in any language an implicit variable/function is a variable/function which is declared inside some block (some loop or some method or a class...) whereas an explicit variable/function is a variable/function that is declared outside the block.

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    re: Difference between Implicit and Explicit Declaration

    Implicit and explicit determine what can be passed to a method. If a method is not declared as explicit the compiler will attempt to look for any implicit conversions from the type being passed to the type the method expects. for example, if the method expects a long and you pass in an unsigned char, the compiler will not complain because an unsigned char can be implicitly converted to a long without any loss of data. If you declare the method as explicit the data type that is used in the method declaration is the data type that needs to be passed to the method. If you want to pass a char *ptr to a method that expects a long you will have to cast the char *ptr to a long when calling the method. For example, foo((long)ptr);

Similar Threads

  1. Replies: 4
    Last Post: 02-01-2011, 12:25 AM
  2. Difference between Implicit & Explicit type conversions
    By Sarfaraj Khan in forum Software Development
    Replies: 5
    Last Post: 09-02-2010, 02:47 PM
  3. Meaning of Explicit and Implicit Conversion
    By Sheenas in forum Software Development
    Replies: 5
    Last Post: 30-01-2010, 12:42 PM
  4. How to avoid the warnings "implicit declaration"
    By Jacek in forum Software Development
    Replies: 4
    Last Post: 10-04-2009, 11:43 PM
  5. Replies: 1
    Last Post: 28-02-2009, 07:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,894,296.98851 seconds with 17 queries