tag:blogger.com,1999:blog-959939550345671470.post4676862536912361639..comments2024-03-24T12:51:18.535+05:30Comments on C programming Interview questions and answers: char overflow in cPriyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-959939550345671470.post-1949718183359526792021-07-03T07:48:07.796+05:302021-07-03T07:48:07.796+05:3022Vishwaksenhttps://www.blogger.com/profile/02471005548325783280noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-10223642651768408722019-10-08T22:13:27.474+05:302019-10-08T22:13:27.474+05:30250+8 is 258 so 3 more than 255.
If we move 3 more...250+8 is 258 so 3 more than 255.<br />If we move 3 more places it gives us the answer 2.Anonymoushttps://www.blogger.com/profile/07812872091864920416noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-39692961911237587442019-03-27T12:09:10.268+05:302019-03-27T12:09:10.268+05:30char c = 250;
c+=8;
What is the value of c? char c = 250;<br />c+=8;<br />What is the value of c? Anonymoushttps://www.blogger.com/profile/05519536488366226096noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-76767942084641151832016-09-06T04:22:26.454+05:302016-09-06T04:22:26.454+05:30-128 :D
-128 :D <br />Anonymoushttps://www.blogger.com/profile/07576429527506395210noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-46321154388381673152015-11-02T18:21:09.850+05:302015-11-02T18:21:09.850+05:30#include
int main()
{
signed char c=-128;
printf(&...#include<br />int main()<br />{<br />signed char c=-128;<br />printf("%d ",c);<br />return 0;<br />}<br />what is the value of c?Anonymoushttps://www.blogger.com/profile/06044580796844224006noreply@blogger.com