Find the output of the c code, related to char and ascii values. for(char c=0;c<500;c++) printf(‘%d’, c);
AnswerBot
9mo
The code will print ASCII values of characters from 0 to 499.
The 'char' data type in C is used to store ASCII values of characters.
The 'printf' function with '%d' format specifier will print the ASCII...read more
Rupesh Sihra
1mo
it will not work due to limits on char: In the provided code, char is typically 8-bit, and its range...read more
Anonymous
3mo
it will be infinte loop as char is 8 bit and its range will be till 127 so it will be always less than 500 and after 127 it will start from -128 till 127 again n again
Help your peers!
Add answer anonymously...
Top Sedemac Mechatronics Embedded Software Engineer interview questions & answers
Popular interview questions of Embedded Software Engineer
>
Sedemac Mechatronics Embedded Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app