Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


#include<stdio.h>
main(0
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}

Answers were Sorted based on User's Feedback



#include<stdio.h> main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),..

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

#include<stdio.h> main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),..

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

#include<stdio.h> main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),..

Answer / ajay

syntax error

Is This Answer Correct ?    1 Yes 1 No

#include<stdio.h> main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),..

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

Post New Answer

More C Interview Questions

What is sizeof return in c?

0 Answers  


write a program to find out prime number using sieve case?

0 Answers   HCL,


What is masking?

0 Answers  


how does printf function work

1 Answers  


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 )

2 Answers   Persistent,


Define the scope of static variables.

0 Answers  


Write a program to print prime nums from 1-20 using c programing?

13 Answers   IBM,


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?

5 Answers   AITH, NIIT,


In a byte, what is the maximum decimal number that you can accommodate?

0 Answers  


I have seen function declarations that look like this

0 Answers  


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.

2 Answers   Microsoft,


Categories