C

Friday, 29 September 2017

Program Showing Type Conversion Across Assignment

#include<stdio.h>
 main()
 {
int a;
clrscr();
a=1;
printf("\n when a=1 then output is %d\n",a);
a='C';
printf("\n when a='C' then output is %d\n",a);
a=5.2;
printf("\n when a=5.2 then output is %d\n",a);
 }


No comments:

Post a Comment

Write a program to draw a circle using mid-point circle drawing algorithm.

#include<iostream.h> #include<graphics.h> #include<conio.h> void drawcircle(int x0, int y0, int r) {         ...