i have to use exit(1) command in a function. Does it have anything to do with the return data type of the function in which it is being used?
Return data type of the function in c programming
1.5k views Asked by AudioBubble At
1
There are 1 answers
Related Questions in C
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in FUNCTION
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- Function is returning undefined but should be returning a matched object from array in JavaScript
- How do you import functions from one page to another in Jetpack Compose?
- Adding Modules to a Namespace using IIFE
- How to convert mathematical expression to lambda function in C++?
- Custom Bash functions & custom statements - Need some advice
- Why my code is working on everything except one instance?
- Getting a function to call an equation
- Create Symbolic Function from Double Vector MATLAB
- Recursive calls to function passed as a parameter of another method via Consumer interface
- How can I replace a word in SQL but only if it is the last word in the string for a scalar-valued function?
- iterating through raster bands to perform calculation
- How to make this sensor keep taking readings once its when_in_range function has been activated?
- TypeError: indice_delete() takes 0 positional arguments but 3 were given
- How to modify HTML in WordPress core file
Related Questions in RETURN-TYPE
- phpstan - return a generic
- User defined function only returns first value in column
- Does proxy subscript operator override always used over non-proxy one?
- Handling Type Changes with auto in C++
- Return the same types as the passed array parameter
- assert returning a value in c++
- How to send muliples values to a method and recived multiple values in different vars in Java
- How do I return the correct type for nested includes in Prisma?
- Why is throwing exceptions not considered a technique to return different data types at runtime?
- How to return either Redirect of the same page with model in Rasor?
- How to return an instance of a derived generic class when a base class is expected using static factory methods?
- Getting "Return from incompatible pointer type" warning, but i don't see why
- Throw exception instead of return. What is the actual type of method return?
- How to wait for an event before returning a value js
- Java nested generics with raw types return type inference
Related Questions in EXITSTATUS
- Can I get a -1 exit code using C++ on mac?
- exit status 1 Error compiling for board Arduino/Genuino Uno
- How can I check the first character in a string in Bash or Unix shell?
- Meaning of exit status 1 returned by linux command
- Obtaining varied results using the grep command
- Return data type of the function in c programming
- How to get return type from Python script
- cant install ripser ERROR: command errorred out with exit status 1
- Perl: suppress output of backtick when file not found
- ffmpeg exit status -1094995529
- Is there a succint way to test exit status of a set of commands in bash?
- ctest reports success for test with exit status 1
- Installation problem with PyTorch's Geometric. "torch-scatter" produces an error with exit status 1
- Is this script (to iterate over files, pass them as arguments to another script, count failures and sum successful outputs) correctly written?
- Windows inventory using python
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
No. The
exitfunction never returns but instead terminates the process it's called from. The C compiler has no intuitive understanding of it and treats it like any othervoidreturning function.This does mean though that while
exitwill end your function the C compiler doesn't see it that way. Hence it will still want a valid return else it will spit out warnings /errors (with a high enough error level enabled). But this is easy enough to work around