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

Build Your On Virtual Assistant with AIML And Python

i know its been a while last i post something here.... i have your back , i got something way more interesting ...you read the title :D The things we are gonna need for this ride linux based system AIML PYTHON XML in short AIML is a form of XML that defines rules for matching patterns and determining responses. so every response should be written here.... dont worry i found a bunch of them on internet and i will provide And since we are gonna work with python we need aiml in python so enter this on terminal pip install aiml lets go to the code then   starting with XML <aiml version = "1.0.1" encoding = "UTF-8" >        <category>                <pattern> LOAD AIML B </pattern>         <template>             <learn> *.aiml </learn>         </template>             </category> </aiml>     save its as k.xml note:- see i put <learn> *.aiml </le

Super Secret Razer Laptop

Project Valerie W hen i heard the name Valerie i had to look at the internet for its meaning and it means strong also found some other meaning like . Valerie is a VERY sexy women who is also very intelligent. She has beautiful eyes and is sometimes considered to be a savage, but those people know as well as everyone else, that she is trully one of a kind  And that make perfect seance why Razer pick the name  What is project valerie? the world’s first automated triple display laptop. Constructed to be incredibly powerful yet mobile, this revolutionary laptop gives you easy access to three eye-popping 4K displays. Regardless of where you are, you can have the visual superiority of a 12K desktop setup to excel at both work and play. This is from  razer website by the way  You can also find some other fantasy stuffs from the website like Featuring three stunning high resolution 17.3 inch 4K screens, Project Valerie provides