Which of the following is not a valid declaration for main
()?
1) int main()
2) int main(int argc, char *argv[])
3) They both work
Answers were Sorted based on User's Feedback
What is the difference between realloc() and free()
write program on arrays
using for loop sum 2 number of any 4 digit number in c language
What is the difference between if else and switchstatement
what is the function of pragma directive in c?
if p is a string contained in a string?
When should we use pointers in a c program?
f(char *p) { p=(char *)malloc(sizeof(6)); strcpy(p,"HELLO"); } main() { char *p="BYE"; f(p) printf("%s",p); } what is the output?
9 Answers Hughes, Tech Mahindra,
how to find out the reverse number of a digit if it is input through the keyboard?
write a C code To reverse a linked list
What are external variables in c?
Tell me the use of bit field in c language?