Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Development-process return 0 vs exit 0

Have Programming Question? Ask it here!
 
 
 


joannes paul
return 0 vs exit 0
2 Answer(s)      2 years and 2 months ago
Posted in : Development process


what is the difference between return 0 and exit 0 in c? i could not find any difference in their behaviour (both terminates the process execution) in a program.


Advertisement
View Answers

June 12, 2012 at 3:20 PM


Difference between return and exit in C

A return is an instruction of the language that returns from a function call while exit is a system call (not a language statement) that terminates the current process.



June 13, 2012 at 11:35 PM


hi deepak,

thanks for your quick response.

let it be system call or language instruction.is there any difference between their behaviour in a program.because both are used to terminate a program.please restrict the answer to return 0 and exit(0).thanks in advance.



Related Tutorials/Questions & Answers:
return 0 vs exit 0
return 0 vs exit 0  what is the difference between return 0 and exit 0 in c? i could not find any difference in their behaviour (both terminates the process execution) in a program
ArrayIndexOutOfBoundsException: 0
ArrayIndexOutOfBoundsException: 0  I'am a newbie to java, i have..." java.lang.ArrayIndexOutOfBoundsException: 0 at jpcap.Jpcap.(Jpcap.java:34) at jpcap.Jpcap.main(Jpcap.java:155) Java Result: 1 BUILD SUCCESSFUL (total time: 0 seconds) here is my code
Advertisements
retrun 0 to os
retrun 0 to os  why should the os needs to be notified of the completion of the program using return 0? what will the os do when it receives a call from return 0 in c
link border 0 css
link border 0 css  Hi, What will the css for making links border 0 in image? I am looking for example code for link border 0 css. Thanks
Combobox jsp from 0 to 10
Combobox jsp from 0 to 10  Hi guys please help me to write a very easy program using jsp to display value in combobox from 0 to 10. How to write...;% for(int i=0;i<=10;i++){ %> <option value="<%=i%>"><%=i%><
what is the difference between productList==null and productList.size()==0
what is the difference between productList==null and productList.size()==0  what is the difference between productList==null and productList.size()==0? here productList is of type LIST
LOGIN FAILED", $_SESSION['login fail']='0',}?>
LOGIN FAILED", $_SESSION['login fail']='0',}?>  please correct my error guys
JAVA leftshift operator add 1 instead of 0
JAVA leftshift operator add 1 instead of 0  Hi Guys, I have a task... on that, it adds "0" on left side of value. For example, view plaincopy... So, the answer will be 20. But, I want to have "1" instead of "0"s. So
count occourance no of time no between 0 to 9 given by user in java
count occourance no of time no between 0 to 9 given by user in java  ...]; int i,temp=0; DataInputStream dis=new DataInputStream(System.in); for(i=0;i<9;i
error:Parameter index out of range (1 > number of parameters, which is 0).
error:Parameter index out of range (1 > number of parameters, which is 0).  my code:String org=request.getParameter("Org"); String desg=request.getParameter("des"); String From=request.getParameter("From"); String
for what value of i the loop executes for infinite times if i prove a condition like ( i !=i+0)
for what value of i the loop executes for infinite times if i prove a condition like ( i !=i+0)  for what value of i the loop executes for infinite times if i prove a condition like ( i !=i+0
applicationDidEnterBackground Exit
. */ exit(0); return; } Thanks...applicationDidEnterBackground Exit  Hi, Provide me full code of applicationDidEnterBackground exit(0). Thanks   Hi, Here is the complete
pdf file is having the 0 KB when generate the pdf file from jsp - JSP-Servlet
pdf file is having the 0 KB when generate the pdf file from jsp  Hi Friend, I am getting OKB pdf file .if i inserting the image into pdf file , i am getting the OKB pdf file now and also not able to open the pdf
if i run this prog, i got exeption in thread "main" java.lang.ArrayIndexOutOfBoundsException:0 at Maxof2.main(Maxof2.java:9), whats the resolution for ths?
" java.lang.ArrayIndexOutOfBoundsException:0 at Maxof2.main(Maxof2.java:9), whats the resolution for ths... int i = Integer.parseInt(args[0]); int j = Integer.parseInt(args[1]); if(i..., ArrayIndexOutOfBoundsException:0 means that you haven't specify the arguments along
create webpage with table sql database using netbeans 6.8 with struts complete tutorial.(include username and password) 0 Answer(s)
create webpage with table sql database using netbeans 6.8 with struts complete tutorial.(include username and password) 0 Answer(s)  create webpage with table sql database using netbeans 6.8 with struts complete tutorial.(include
Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times)
Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times)  Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print
Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times)
Can u print in turbo C  Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times
Programming - Transform Name - GUI 0
Java: Programming - Transform Name - GUI 0 Write a GUI program to redisplay a name, possibly transformed. This Java program will reformat a user's name to change a "first last" name into a "last, first" format. The input name
getResourceAsStream() vs FileInputStream
getResourceAsStream() vs FileInputStream  getResourceAsStream() vs FileInputStream
could not find the main class programm will exit - error
could not find the main class programm will exit - error  when i... main class programm will exit. class Car { String name: String Color...=""; int num=0; public void accept(){ name = "BMW"; Color = "Block
charAt() method in java
() in java. This method comes in java.lang.String package. charAt() return the character at the given index within the string, index starting from 0. This method return the character at the specified index in the string. Syntax: public
How to eliminate error," Could not find the main class: filecopy.FileCopy. Program will exit." ?
Program will exit." ?  run: java.lang.NoClassDefFoundError: filecopy... class: filecopy.FileCopy. Program will exit. Exception in thread "main" Java Result: 1 BUILD SUCCESSFUL (total time: 0 seconds
websphere vs weblogic
websphere vs weblogic  websphere vs weblogic Why you are using websphere instead of weblogic
oracle vs sql
oracle vs sql  what is the difference between oracle and sql
encapsulation vs abstraction
encapsulation vs abstraction  what is the difference between encapsulation and abstraction
JETM vs Jprofiler
JETM vs Jprofiler  Can anyone explain the difference between Java Execution Time Measurement(JETM) and Jprofiler
Interface vs abstract class
Interface vs abstract class  Hai, Is there any possible to defining abstract methods in Interface
compiler vs interpreter
compiler vs interpreter  "compiled program executes faster especially if the program contains loop" Why
ejb vs hibernate - EJB
ejb vs hibernate  1>>> If we have ejb entity bean why we need hibernate? 2>>> Is hibernate distributed
java vs vb
java vs vb  history of java and advanced products as well as vb? compared with java and vb? finalize list out the table of java and vb products? viewers i want more soon
inheritence Vs inheritence
inheritence Vs inheritence  what are difference b/w c++ inheritence and java inheritence   Hi Friend, C++ supports Multiple Inheritance while Java does not. Thanks
Derby vs MySQL - SQL
Derby vs MySQL  Hi, I want to know what are the advantages using Derby Database over MySQL.  http://www.roseindia.net/eclipse/plugins/database/index.shtml
ejbSelect() vs ejbHome() - EJB
ejbSelect vs ejbHome  Hi, 1) What are the differences between ejbSelect() and ejbHome...() business methods in CMP bean? 2) In Ed Romans Mastering EJB 3rd edition, it is mentioned that ejb finder methods
Return keyword
Return keyword  how do we use return in methods?   Java use of return keyword import java.util.*; public class ReverseString{ public...).reverse().toString(); return rev; } public static void main(String
RR4 Linux 3.0 Beta 0 XGL Edition has been released
RR4 Linux 3.0 Beta 0 XGL Edition has been released RR4 Linux is the world's most complete GNU/Linux distribution based on Gentoo unstable. Flexibility, beauty, stability and extreme performance are all hallmarks of the RR4 experience
What it will return ..... ?
What it will return ..... ?   import java.util.*; public class Name { private final String first, last; public Name(String first, String last...) { if (!(o instanceof Name)) return false; Name n = (Name)o; return n.first.equals
portability vs platform independent
portability vs platform independent  sir, pls tell me 1.the differences between platform independent and portability related to java technology 2.how java provides security 3.how can i prove servlet is a single instance
return code - Java Beginners
return code  import java.util.Scanner; public class...(System.in); int menu = 0; System.out.println("School Registration System Main...: "); String name = scan.next(); break;//What code to use to return to main menu after
java vs .net - Java Beginners
java vs .net  which language is powerful now java or .net
doGet() Vs doPost()
doGet() Vs doPost()  plz explain the differences between both of these methods used in a servlet. also give an example of both the methods. thanks.   A doGet() method is limited with 2k of data to be sent, and doPost
Order of list in java Vs Haskell.
Order of list in java Vs Haskell.  How to order of [1,2,3] to [1,2,3,2,1]in java
PHP Comma vs Period - PHP
PHP Comma vs Period  Explain PHP Comma vs Period. And also how can one show a comma within a comma separated file.   Hi Friend, Please visit the following link: http://www.roseindia.net/tutorial/php/phpbasics/PHP
Probability Vs. Number of people table - Java Beginners
Probability Vs. Number of people table  The probability that at least... - 365/365 x 364/365 x 363/365 x 362/365 x 361/365 = 0.027, which is 1 - (365 - 0)*(365... x 357/365 x 356/365 = 0.12, which is 1 - (365 - 0)*(365 - 1)*(365 - 2)*(365
Hibernate Native vs Hibernate JPA
Hibernate Native vs Hibernate JPA  What is the difference between Hibernate Native vs Hibernate JPA?   Hibernate is ORM framework which you can use in your application. You can also use Hibernate as Persistence
Flex Arrays
by indexing starting from 0. Flex provides Array class to work with arrays... separately: var myArray:Array = new Array(); myArray[0
in string how will write the return statement..........?
in string how will write the return statement..........?  import...; public static void main(String args[]){ int i=Integer.parseInt(args[0...){ if(i!=0) { int temp=0; temp=i%2; i=i/2
Java Method Return Value
Java Method Return Value       Java  method Return Value return to the code when... When it  reaches a return statement throwing 
jdk 1.6 vs jdk 1.7
jdk 1.6 vs jdk 1.7  What is the difference between jdk 1.6 and 1.7... for scripting languages.   i am talking about jdk 1.6 vs 1.7 and you have given the reply for 1.5 vs 1.6
Servlet vs Class - Java Beginners
Servlet vs Class  I have worked on lot of projects and written number of classes myself. I have never started a project myself. Now I am assigned a task of starting a project. Could you please guide me if to start a project using
arraylist vs vector - Java Beginners
arraylist vs vector  hi, i want to know what is the difference between arraylist and vector in case of performance. in what cases we should go for arraylist and in what case we should go for vector. is there any   array
Advertisements
 

 

 

DMCA.com