2,645 views
0 votes
0 votes
The program fragment:

      int i= 263;

      putchar (i)

(a) prints 263                                                               (b) prints the ASCII equivalent of 263

(c) rings the bell                                                          (d) prints garbage

2 Answers

0 votes
0 votes

answer is b

 

putchar is a function in the C programming language that writes a single character to the standard output stream, stdout. Its prototype is as follows:

 

int putchar (int character)

 

Related questions

0 votes
0 votes
1 answer
1
SSR17 asked Feb 29
204 views
#include <stdio.h int main() { int i = -1; int x = (unsigned char)i; printf("%d", x); return 0; }output is 255 , but please explain how
2 votes
2 votes
1 answer
4
rupamsardar asked Aug 30, 2023
466 views
#include <stdio.h int f(int x) { if(x%2==0) { return f(f(x-1)); } else return (x++); } int main() { printf("%d",f(12)); ret...