ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

Find the output the following C program? #include<stdio.h> int main() { char x=65; x=x+10; printf(“%d” x) return 0; }

user-image
تم إضافة السؤال من قبل Amit Kumar , Sr SEO Engineer , Amvrin System Pvt Ltd
تاريخ النشر: 2015/04/15
Gayasuddin Mohammed
من قبل Gayasuddin Mohammed , Advocate , Practicing Law before High Court at Hyderabad

it prints75. even in case you initialise

char x = 'a';

x=x+10;

printf("%d", x);

will also print the value of a +10

in case of printf("%c", x) will result the output as 'k'

geeta sethi
من قبل geeta sethi , faculty , apar india college

When you run a program It will show the value of x =75

YONGTOH DIANGHA
من قبل YONGTOH DIANGHA , Customer Services , MTN Cameroon

When you run the program, it will give a value of75 and stops.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟