Should a function contain a return statement if it does not return a value?
Answer / Akash Babu
Yes, it's considered good practice to include a return statement at the end of every function, even if it doesn't return a value. This allows for easier understanding and maintenance of the code.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a node in c?
1)what is the error in the following stmt where str is a char array and the stmt is supposed to traverse through the whole character string str? for(i=0;str[i];i++) a)There is no error. b)There shud be no ; after the stmt. c)The cond shud be str[i]!='\0' d)The cond shud be str[i]!=NULL e)i shud be initialized to 1
write a c program to accept a given integer value and print its value in words
4 Answers Vernalis, Vernalis Systems,
What are the basic data types associated with c?
write a program to count the no of repaeted words in a line?
what does " calloc" do?
the expression a=30*1000+2768; evalutes to a) 32768 b) -32768 c) 113040 d) 0
#define min((a),(b)) ((a)<(b))?(a):(b) main() { int i=0,a[20],*ptr; ptr=a; while(min(ptr++,&a[9])<&a[8]) i=i+1; printf("i=%d\n",i);}
write a program that will print %d in the output screen??
what is a pointer
4 Answers Bank Of America, TCS,
please help me.. how to write a code of this output?? "Enter range number:"10 1 is an odd number 2 is an even numbers 3 in an odd numbers 4 " to 10" "printing all odd numbers:" 1,3,5,7,9 "printing all even numbers:" 2,4,6,8,10 "sum of all odd numbers:25 "sum of all even numbers:30 using a C Programming ARRAY pleas pleas help.. its my project ..please :(
What is cohesion in c?