what will be the output of this program........
main()
{
int a=2,b=4,c=6;
printf("%d");
}
why it gives the value of third variable.

Answer Posted / mallikharjuna

6 will come

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of endless loops?

625


What is a macro?

657


Write a C program to count the number of email on text

1420


Is javascript based on c?

595


What is I ++ in c programming?

629






What is extern keyword in c?

647


How can I direct output to the printer?

814


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1856


What are the application of void data type in c?

719


string reverse using recursion

1812


What are the back slash character constants or escape sequence charactersavailable in c?

686


How will you delete a node in DLL?

686


Simplify the program segment if X = B then C ← true else C ← false

2588


How can I implement sets or arrays of bits?

607


FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.

1203