void main()

{

if(~0 == (unsigned int)-1)

printf(“You can answer this if you know how values are
represented in memory”);

}



void main() { if(~0 == (unsigned int)-1) printf(“You can answer this if yo..

Answer / susie

Answer :

You can answer this if you know how values are
represented in memory

Explanation

~ (tilde operator or bit-wise negation operator) operates on
0 to produce all ones to fill the space for an integer. –1
is represented in unsigned value as all 1’s and so both are
equal.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Code Interview Questions

find simple interest & compund interest

2 Answers  


Write a program to implement the motion of a bouncing ball using a downward gravitational force and a ground-plane friction force. Initially the ball is to be projected in to space with a given velocity vector

2 Answers  


abcdedcba abc cba ab ba a a

2 Answers  


How we will connect multiple client ? (without using fork,thread)

3 Answers   TelDNA,


main() { char a[4]="HELLO"; printf("%s",a); }

3 Answers   CSC,






main() { clrscr(); } clrscr();

2 Answers  


source code for delete data in array for c

1 Answers   TCS,


3) Int Matrix of certain size was given, We had few valu= es in it like this. =97=97=97=97=97=97=97=97=97=97=97 1 = | 4 | | 5 | &= nbsp; | 45 =97=97=97=97=97=97=97=97=97=97=97 &n= bsp; | 3 | 3 | 5 | = | 4 =97=97=97=97=97=97=97=97=97=97=97 34 |&nbs= p; 3 | 3 | | 12 | &= nbsp; =97=97=97=97=97=97=97=97=97=97=97 3 | &nbs= p; | 3 | 4 | = | 3 =97=97=97=97=97=97=97=97=97=97=97 3 | = ; | | | = ; 3 | =97=97=97=97=97=97=97=97=97=97=97 &= nbsp; | | 4 | = ; | 4 | 3 We w= ere supposed to move back all the spaces in it at the end. Note: = If implemented this prog using recursion, would get higher preference.

0 Answers   RoboSoft,


Write a program to receive an integer and find its octal equivalent?

7 Answers  


Code for 1>"ascii to string" 2>"string to ascii"

1 Answers   Aricent, Global Logic,


#define a 10 void foo() { #undef a #define a 50 } int main() { printf("%d..",a); foo(); printf("%d..",a); return 0; } explain the answer

1 Answers  


How will u find whether a linked list has a loop or not?

8 Answers   Microsoft,


Categories