Skip to main content

Data Type vs Return Type

Legend Of The Returned One



Aha that is a question right ? Aren't they are the same thing ? At some point I honestly thought the same but actually it's not data type is not return type and return type is not data type . Even if you are using Java php c++ or any other languages








During a program we have to initialize or declare some variable for that we need to specify what data are we gonna use on that particular variable location .

Then what is return type ?

We seen that when we a create  or providing the definition to a function we have to specify a return type to indicate what data type is return from the function to the main function to be more specific it's know as return data type.
For example void cat ( ) " the function cat is not returning any data "
or int cat( ) " means cat is returning some value to the main function"

Ever seen any variable as a data type of return?

I haven't and please let me know if I got it wrong in the comments section because this one gose under the fun facts 
 
"That's it in short data type is the type of data in a variable while return type is the data which is returning from a function "


Did you know constructor is a function/method and that cant have a return type 


I have a apology to make I haven't post any thing for a while Iam blaming my electricity board for that you will get the idea visit kerala during the rain season . Ryzen is coming up stay tuned for that have a nice day 

  

Comments

  1. This is realy a Nice blog post read on of my blogs It is really helpful article please read it too my blog Recover password on Pinterest you can visits our websites or toll free no +1-866-558-4555. solve your problem fastly.

    ReplyDelete

Post a Comment

Popular posts from this blog

HACKING WINDOWS PASSWORD

Aright the word hacking in the title is kind of funny to me and to you ( PROBABLY ) And this blog will have a follow up to do the real cool stuff about windows password... like the wifi hack this not a big deal . first step  open up the command prompt as administrative mode.....    second step type net user this will show all the users and pick one name you need to mess up the password step three net user username * note *fill up the user name from the net user command  hit enter this  will ask you the new password type in one or leave it blank and hit enter do the same in confirm : you are good to go .... the password is hack (lol) so in next blog we are gonna make a back door . and we can do this same with out even login to the system :)

Best 2 In 1 So Far ( MIIX 320 )

                              Lenovo Miix 320 2017 Did you ever dream of having a laptop which is not from any creepy ebay  ?  .And what if the laptop can be convert into a tablet by plucking the keyboard from it (to mention keyboard come with it for free don't have to buy it extra .) .                                              well then lenovo got you covered meet lenovo's new    Miix 320  showed up in this MWC 2017                                                                  Can it be your dream system for JUST  $200  or is it gonna be the next show-of. We are going to take a peek ...