vishnu


{ City } bangalore
< Country > india
* Profession * student
User No # 12878
Total Questions Posted # 4
Total Answers Posted # 5

Total Answers Posted for My Questions # 14
Total Views for My Questions # 33983

Users Marked my Answers as Correct # 298
Users Marked my Answers as Wrong # 43
Questions / { vishnu }
Questions Answers Category Views Company eMail

what is the use of #pragma pack, wer it is used?

Wipro,

2 C 7029

What is structure padding & expalain wid example what is bit wise structure?

1 C 5938

what are the compilation steps? ( i want inside the compiler )

2 C 7734

Reverse a string word by word??

9 C 13282




Answers / { vishnu }

Question { 57827 }

What is the main differences between C and Embedded C?


Answer

C is for desktop computers, embedded C usually is for
microcontroller based applications.
C use the resources of desktop computers (memory, OS, etc)
Embbeded C use only limited resources available in chip
(limited RAM, ROM, ports, etc).
Embbed C could be a subset of C.

Is This Answer Correct ?    199 Yes 16 No

Question { 3313 }

what is real time system?what is the differance between hard
and soft real time systems


Answer

real time system processing must be done within a defined
timed constraint otherwise system fails.
hard real time: time is strictly bounded ex: space
crafts,avionics,military application
soft real time : time is not strictly bounded ex: ATMs..

Is This Answer Correct ?    2 Yes 0 No


Question { HCL, 8340 }

what are the uses of structure?


Answer

1.changing d sizeof cursor,
2 clearing d content of screen,
3 drawing graphics shapes
4 formatting floppy drive
5 interacting with mouse

Is This Answer Correct ?    7 Yes 8 No

Question { Satyam, 18973 }

what is the difference between. system call and library
function?


Answer

system calls are provided by the system and are executed in
the system kernel. They are entry points into the kernel and
are therefore NOT linked into your program. These are not
portable calls.
ยท Library calls include the ANSI C standard library and
are therefore portable. These functions are linked into your
program.
It is worth noting that, because system calls are part of
the O/S. The program has to make a context switch to the
kernel when they are called and because of this, they have a
high startup overhead. The upside is that the time executing
these routines is assigned to the OS and not the user program.

Is This Answer Correct ?    66 Yes 9 No

Question { 13282 }

Reverse a string word by word??


Answer

#include
#include
#include
#include
void main()
{
int n,i,j=0;
char str[100];
char str1[100];
clrscr();
puts("Enter string:");
gets(str);
n=strlen(str);
for(i=n-1;i>=0;i--)
{
if(str[i]==' ')
{
str1[j]='\0';
strrev(str1);
printf("%s ",str1);
j=0;
}
else
{
str1[j++]=str[i];

}
}
if(i==-1)
{
str1[j]='\0';
strrev(str1);

printf("%s ",str1);
}
getch();
}

//strtoke
//isvowel

Is This Answer Correct ?    24 Yes 10 No