#include<stdio.h>
int main()
{
int x=9,y=8;
printf("%d %d",x++,x++);
}
Why is the output 10 9 and not 9 10 ?
Type: Posts; User: royroy
#include<stdio.h>
int main()
{
int x=9,y=8;
printf("%d %d",x++,x++);
}
Why is the output 10 9 and not 9 10 ?
#include<stdio.h>
#include<stdlib.h>
struct node{
int data;
struct node *next;
};
int main()
{
struct node *start,*ptr;
int n,i,data;
#include<iostream>
#include<conio.h>
#include<stdlib.h>
using namespace std;
int main()
{
typedef struct list
{
int info;
struct list *link;
#include<iostream.h>
#include<conio.h>
class test
{
private:
float a,b,c;
int q,w;
public:
#include<iostream.h>
#include<conio.h>
class test
{
private:
float a,b,c;
int q,w;
public:
main()
{
float a= 0.7 ;
if (a< 0.7)
printf ( "c" ) ;
else
printf ( "C++· ) ;
}
yes, i get it
thanks
ok let the value to the left of && be 1 then if k=0 it must give 0 then?
main( )
{
int i = -3, j = 2, k = 0, m ;
m = ++i II ++i && ++k ;
printf ( "\n%d %d %d %d", i, j, k, m) ;
#include<iostream.h>
#include<conio.h>
class item{
public:
char name[20];
int price[10];
void enter();
};
void item::enter()
{
#include <stdio.h> main(){ int ch; while ((ch = getchar()) != `\n') putchar(ch); return 0; }how can int store char here?
same error
#include<stdio.h>
#include<conio.h>
void fun();
void main()
{
int x=100;
clrscr();
printf("%d",x);
fun();
getch();
#include<stdio.h>
#include<conio.h>
void main()
{
struct dir{
char name[10];
int no[10];
};
struct dir doc[4];
int i;
#include<stdio.h>
#include<conio.h>
float fun(int x,int y)
{
return(x/y);
}
int main()
{
int a,b;
float c;
#include<stdio.h>
#include<conio.h>
int main()
{
int a,b;
float c;
clrscr();
printf("Enter two numbers for division\t");
scanf("%d %d",&a,&b);
c=fun(a,b);
#include<stdio.h>
#include<conio.h>
void main()
{
int a[20],i,n,*j;
clrscr();
printf("Enter 5 elements\n ");
for(i=0;i<5;i++){
scanf("%d",&a[i]);
j=&a[i];
oops!
#include<stdio.h>
#include<conio.h>
swap(int x,int y);
int main()
{
int a,b;
clrscr();
printf("Enter two numbers ");
scanf("%d%d",&a,&b);
swap(a,b);
#include<stdio.h>
float square(float x);
int main()
{
float a,b;
printf("Enter a num");
scanf("%d",&a);
b=square(a);
printf("\nSquare is %f",b);
return 0;
thank you
#include<stdio.h>
void main()
{
int a,b,c,sum;
printf("\nEnter three num ");
scanf("%d%d%d",&a,&b,&c);
sum=calsum(a,b,c);
printf("\nsum=%d",sum);
}
calsum(x,y,z)
it gives me error around line 3
please help sorting out the error
insert
#include<stdio.h>
#include<conio.h>
{
void main()
int a[10][10],b[10][10],q,w,e,r,i,j,k,l;
printf("Enter the size of first matrix : ");...