main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?

Answer Posted / manne ranjith

2 2 2

I compiled this in system,this is correct answer.check it
once...............

Is This Answer Correct ?    18 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do you override a defined macro?

591


explain what is an endless loop?

615


Explain what is wrong with this program statement?

625


What does %p mean c?

634


What is variable and explain rules to declare variable in c?

558






Where are the auto variables stored?

628


When should we use pointers in a c program?

636


A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?

1516


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

671


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

1850


Write the syntax and purpose of a switch statement in C.

631


How can you access memory located at a certain address?

670


What are the differences between Structures and Arrays?

614


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

617


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1507