Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

main()

{

char c;

int i = 456;

clrscr();

c = i;

printf("%d", c);

}

a. 456

b. -456

c. random number

d. none of the above

Answers were Sorted based on User's Feedback

main() { char c; int i = 456; clrscr(); c = i; printf("%d"..

d) -56

 Is This Answer Correct ? 21 Yes 5 No

main() { char c; int i = 456; clrscr(); c = i; printf("%d"..

ans: -56
explanation:
it mainly focus on integer range
it will prints the output like this
for 1=1
2=2....127=-127,
128=-128,
129=-127....256=0;
similarly
456 means 256+256=512=0;
456-512=-56

 Is This Answer Correct ? 10 Yes 2 No

main() { char c; int i = 456; clrscr(); c = i; printf("%d"..

d.none of the above

 Is This Answer Correct ? 8 Yes 2 No

More C Code Interview Questions

Write a single line c expression to delete a,b,c from aabbcc

In a gymnastic competition, scoring is based on the average of all scores given by the judges excluding the maximum and minimum scores. Let the user input the number of judges, after that, input the scores from the judges. Output the average score. Note: In case, more than two judges give the same score and it happens that score is the maximum or minimum then just eliminate two scores. For example, if the number of judges is 5 and all of them give 10 points each. Then the maximum and minimum score is 10. So the computation would be 10+10+10, this time. The output should be 10 because 30/3 is 10.

How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

main() { int i =10, j = 20; clrscr(); printf("%d, %d, ", j-- , --i); printf("%d, %d ", j++ , ++i); } a. 20, 10, 20, 10 b. 20, 9, 20, 10 c. 20, 9, 19, 10 d. 19, 9, 20, 10

Declare an array of N pointers to functions returning pointers to functions returning pointers to characters?

main ( ) { static char *s[ ] = {“black”, “white”, “yellow”, “violet”}; char **ptr[ ] = {s+3, s+2, s+1, s}, ***p; p = ptr; **++p; printf(“%s”,*--*++p + 3); }

Write a Program that Inputs 10 Numbers in an Array and Show the Maximum Number

How to reverse a String without using C functions ?

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

how can i cast a char type array to an int type array

How we print the table of 3 using for loop in c programing?

Is the following code legal? void main() { typedef struct a aType; aType someVariable; struct a { int x; aType *b; }; }

Categories
• C Code (424)
• C++ Code (128)
• VC++ Code (17)
• Java Code (84)
• Dot Net Code (114)
• Visual Basic Code (11)
• Programming Code AllOther (62)