Predict the output or error(s) for the following:
25. main()
{
printf("%p",main);
}

Answer Posted / surenda pal singh chouhan

Some address will be printed.

Explanation:
Function names are just addresses (just like
array names are addresses).
main() is also a function. So the address of function main
will be printed. %p in printf specifies that the argument
is an address. They are printed as hexadecimal numbers.

26. main()

Is This Answer Correct ?    28 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

using only #include and #include Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

1614


When can a far pointer be used?

799


how do you execute a c program in unix.

878


List the difference between a 'copy constructor' and a 'assignment operator' in C?

869


What is difference between union All statement and Union?

899


I have a varargs function which accepts a float parameter?

818


What is the modulus operator?

961


What is hashing in c?

918


How to establish connection with oracle database software from c language?

1964


What is character set?

944


What are the different types of errors?

861


Is fortran still used today?

826


I heard that you have to include stdio.h before calling printf. Why?

840


What are categories used for in c?

836


What are operators in c?

802