main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?
Answers were Sorted based on User's Feedback
Answer / raj
answer is :1 2 2 ;
size('3')means character constant so it is short int size it
will ocupi 1.
size("3")it will treated as string. 2
size(3) it is integer 2
| Is This Answer Correct ? | 9 Yes | 19 No |
What is gets() function?
WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE?
8 Answers Carphone Warehouse, IBM, SAS,
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
1 Answers 91mobiles, Amazon, App Guruz, College School Exams Tests, Folio3, Infosys, Omega, Planin, Riphah International University, Subex,
Is main an identifier in c?
void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case
write a program to reverse the words in the sentence.NOTE:not reverse the entire string but just the occurance of each word
What is character constants?
Explain what is the advantage of a random access file?
Is there any demerits of using pointer?
main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?
Explain how can a program be made to print the line number where an error occurs?
Why can arithmetic operations not be performed on void pointers?