#include<stdio.h>
main(0
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}
Answers were Sorted based on User's Feedback
Answer / nithya
the above code output is
syntax error
this code will be change from
#include<stdio.h>
main()
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}
the out put is
222
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / a.c.pattanaik
code is error due to declaration
if code is this
main()
{
printf("\n %d %d %d",sizeof(2),sizeof("a"),sizeof(2));
}
Ans-4 2 4
| Is This Answer Correct ? | 9 Yes | 5 No |
Answer / abhishek kumar verma
you have made a typing mistake if code will be this
#include<stdio.h>
main()
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}
then output will be 4 2 4
because in first it will print the size of an integer and in second it will print the size of an string and in third it will print the size of integer again .
| Is This Answer Correct ? | 4 Yes | 5 No |
What is sizeof return in c?
write a program to find out prime number using sieve case?
What is masking?
how does printf function work
pgm in c to reverse string by word using array(god is love becomes love is god) (no additional array can used,space is only delimiter between words )
Define the scope of static variables.
Write a program to print prime nums from 1-20 using c programing?
What are near, far and huge pointers?
0 Answers Hexaware, Thomson Reuters, Virtusa,
WAP to accept first name,middle name & last name of a student display its initials?
In a byte, what is the maximum decimal number that you can accommodate?
I have seen function declarations that look like this
You are given a string which contains some special characters. You also have set of special characters. You are given other string (call it as pattern string). Your job is to write a program to replace each special characters in given string by pattern string. You are not allowed to create new resulting string. You need to allocate some new memory to given existing string but constraint is you can only allocate memory one time. Allocate memory exactly what you need not more not less.