In C program, at end of the program we will give as "return 0"
and "return 1", what they indicate? Is it mandatory to specify
them?
Answers were Sorted based on User's Feedback
Answer / ranjeet roy
if the return type of our function is int ..
thn it is maindetory to return something like 0 nd 1..
but if we declare the return type void
then doesnt require
| Is This Answer Correct ? | 21 Yes | 1 No |
Answer / sivavendra
Yes, it is mandatory to return some value if return type of main() is specified as "int"
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the types of pointers?
What is difference between far and near pointers?
Explain this code. #include <stdio.h> void f1(int *k) { *k = *k + 10; } main ( ){ int i; i = 0; printf (" The value of i before call %d \n", i); f1 (&i); printf (" The value of i after call %d \n", i); }
write a c program to remove all the duplicate characters in a string and replace with single character? ex:-input- AAABBBCCC output- ABC
wite a programme in c to linear search a data using flag and without using flags?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Explain can the sizeof operator be used to tell the size of an array passed to a function?
write C code to reverse a string such that if i/p is "abc defg hij klmno pqrs tuv wxyz" and the o/p should be "cba gfed jih onmlk srqp vut zyxw"
Why C language is a procedural language?
Explain what happens if you free a pointer twice?
Can u please send me the exam pattern and also Previous papers to javed123go@gmail.com