how can i print : “hello”….printing inverted commas as well.
how is memory allocated in expression int *i=100; ?? above statement does’nt show any error..but is the statement correct?? because in documents its written “when a pointer is declared it doesnot point anywhere,we must set it to point sumwhere before using it”..please clarify..
As RS-232 protocol says , frame consists of start , data , parity and stop bit ,
How Transmitter Transmits and Reciever recieves start , stop and parity bit if 8 bit data is sent from transmitter to reciever , as THR containes 8 bits and that should be data .
#include <stdio.h>
int main()
{
int a[5][5],c[5][5],i,j;
int b[2][3]={{1,2,3},{3,4,5}};
for(i=0;i<5;i++)
{
for(j=0;j<5;j++)
{
printf(“array B: %d\n”,b[i][j]);
printf(“enter array A: “);
scanf(“%d”,&a[i][j]);
c[i][j]=a[i][j]+b[i][j];
printf(“c[%d}[%d] : %d \n\n “,i,j,c[i][j]);
}
}
return 0;
}
OUTPUT:
array B: 1
enter array A: 2
c[0}[0] : 3
array B: 2
enter array A: 2
c[0}[1] : 4
array B: 3
enter array A: 2
c[0}[2] : 5
array B: 3
enter array A: 2
c[0}[3] : 5
array B: 4
enter array A: 2
c[0}[4] : 6
array B: 3
enter array A: 2
c[1}[0] : 5
array B: 4
enter array A: 2
c[1}[1] : 6
array B: 5
enter array A: 2
c[1}[2] : 7
array B: 3
enter array A: 2
c[1}[3] : 5
array B: 4
enter array A: 2
c[1}[4] : 6
array B: 3
enter array A: 2
c[2}[0] : 5
array B: 4
enter array A: 2
c[2}[1] : 6
array B: 5
enter array A: 2
c[2}[2] : 7
array B: 5
enter array A: 2
c[2}[3] : 7
array B: 6
enter array A: 2
c[2}[4] : 8
array B: 5
enter array A: 2
c[3}[0] : 7
array B: 6
enter array A: 2
c[3}[1] : 8
array B: 5
enter array A: 2
c[3}[2] : 7
array B: 6
enter array A: 2
c[3}[3] : 8
array B: 7
enter array A: 2
c[3}[4] : 9
array B: 6
enter array A: 2
c[4}[0] : 8
array B: 7
enter array A: 2
c[4}[1] : 9
array B: 5
enter array A: 2
c[4}[2] : 7
array B: 6
enter array A: 2
c[4}[3] : 8
array B: 5
enter array A: 2
c[4}[4] : 7
Q-1) ARRAY b[2][3] IS BEING INITIALISED..Then how is compiler giving other values as shown in OUTPUT??
2) IF ITZ ABOUT CHECK-BOUND,,then give the complete justification..coz here we r INITIALISING AN ARRAY , not inputing IT??
I am unable to understand , how to use stick parity and set break bit of LCR Register ?
How parity error bit of LSR of Reciever machine will check the parity of data , sent by Transmitter device ,
q15-WAP that reads integers until 0 is entered.after i/p terminates,the program should report the total no of even integers (excluding the 0) entered,the avg value of even integers………………………..how we read the i/p until 0…plz comment.
q.16-using if else statements,WAP that reads up to #,replaces each period with an exclamation mark,replaces each exclamation mark intially present with two EM,&reports at the end the no of substitution it has made………………plz comment
myapp: main.o 21.o 22.o
gcc -o myapp main.o 21.o 22.o
main.o: main.c a.h
gcc -c main.c
21.o: 21.c a.h b.h
gcc -c 21.c
22.o: 22.c b.h c.h
gcc -c 22.c
makefile:1: *** recipe commences before first target. Stop.
………how to resolve this?
#include<stdio.h>
union logic
{
int i;
char x[2];
//char y;
}emb={510,’A’,’B’};
int main()
{
printf(“%d\n”,emb.i);
printf(“%c\n”,emb.x[0]);
printf(“%c\n”,emb.x[1]);
printf(“%d\n”,emb.i);
}
#include<stdio.h>
#include<string.h>
struct logic
{
char ch[10];
char x;
int y;
char z;
//int i;
};
int main()
{
struct logic *p;
strcpy(p->ch,”hello”);
p->x=’b’;
p->y=42;
p->z=’c’;
printf(“%s\n%c\n%d\n%c\n”,p->ch,p->x,p->y,p->z);
}
how many number users can be created on a linux system.???
hi,
how to convert a given lower case string into upper case
wap to display software timer using structure with pointers.
how to start this??
#include<stdio.h>
int main(void)
{
float a,b;
b=2.0e20+1.0;
a=b-2.0e20;
printf(“%f\n”,a);
return 0;
}
output is : 4008175468544.000000
how this can be possible????????????????