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...


main()

{

printf("%d, %d", sizeof('c'), sizeof(100));

}

a. 2, 2

b. 2, 100

c. 4, 100

d. 4, 4

Answers were Sorted based on User's Feedback



main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 ..

Answer / krishna kumari. b

Answer : A (2,2)

Is This Answer Correct ?    2 Yes 3 No

main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 ..

Answer / shrikantauti

2,2

Is This Answer Correct ?    2 Yes 3 No

main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 ..

Answer / shiva

answer is 2,2

Is This Answer Correct ?    0 Yes 1 No

main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 ..

Answer / krishna krish

a.2,2

Is This Answer Correct ?    0 Yes 1 No

main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 ..

Answer / ankit

ans is option d if ypu don't believe run it in compiler you vl get the answer

Is This Answer Correct ?    0 Yes 1 No

main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 ..

Answer / abhinav

answer is 1,2
because of character takes 1 byte
and ascii value of 100 is 2.

Is This Answer Correct ?    0 Yes 2 No

main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 ..

Answer / guest

a. 2,2

Is This Answer Correct ?    0 Yes 2 No

main() { printf("%d, %d", sizeof('c'), sizeof(100)); } a. 2, 2 ..

Answer / sravan

it's give answer is 1,2

Is This Answer Correct ?    2 Yes 9 No

Post New Answer

More C Code Interview Questions

void main() { int c; c=printf("Hello world"); printf("\n%d",c); }

2 Answers  


#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }

1 Answers  


How to reverse a String without using C functions ?

33 Answers   Matrix, TCS, Wipro,


#include <stdio.h> int main(void) { int a=4, b=2; a=b<<a+b>>2 ; printf("%d",a); return 0; }

0 Answers   Student,


main() { char * strA; char * strB = I am OK; memcpy( strA, strB, 6); } a. Runtime error. b. I am OK c. Compile error d. I am O

4 Answers   HCL,


how to delete an element in an array

2 Answers   IBM,


There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

1 Answers   TCS,


main() { float me = 1.1; double you = 1.1; if(me==you) printf("I love U"); else printf("I hate U"); }

1 Answers  


How will you print % character? a. printf(“\%”) b. printf(“\\%”) c. printf(“%%”) d. printf(“\%%”)

4 Answers   HCL,


plz send me all data structure related programs

2 Answers  


how many processes will gate created execution of -------- fork(); fork(); fork(); -------- Please Explain... Thanks in advance..!

8 Answers   GATE,


#define DIM( array, type) sizeof(array)/sizeof(type) main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr, int)); }

1 Answers  


Categories