answersLogoWhite

0

📱

C Programming

Questions related to the C Computer Programming Language. This ranges all the way from K&R to the most recent ANSI incarnations. C has become one of the most popular languages today, and has been used to write all sorts of things for nearly all of the modern operating systems and applications. It it a good compromise between speed, power, and complexity.

9,649 Questions

C program to find greatest of three numbers?

# include<stdio.h>

main()

{

int a,b,c;

print f("enter the values of a,b,c");

scan f("%d%d%d",&a,&b,&c);

if((a>b)&&(a>c))

print f("Greatest value is a =%d",a);

else if((b>a)&&(b>c))

print f("Greatest value is b=%d",b);

else

print f("Greatest value is c=%d",c);

}

Is it true that in Unsigned char signed value is represented by 1 in most significant bit?

All possible values of an unsigned char are unsigned, so there is no bit that "represents a signed value."

With an 8-bit byte, 1 in the most significant bit of an unsigned char represents the value 128. Consequently unsigned chars with a 1 in this position have values between 128 (when all other bits are 0) and 255 (when all other bits are 1).

What is c langvage?

C is a low level programming language or it is also called as machine level language as the code written in C is encrypted into machine readable form then it is executed.

If you want to learn C programming language in depth then Newtum is a best option to start with. It's C programming online course provides complete knowledge of the all the basic concepts involved in programming.

If you are interested, please vivist our website!

What is the definition of execute?

Execute means to perform an action. To execute a turn is to make a turn. To execute a jump, or play, is to actually complete the activity. To execute a computer program is to actually run it on the computer.

Another common use is to mean to kill, either as capital punishment or a murder done in a similarly dispassionate manner.

What will happen if you will assign a value to float variable which is beyond the range of float data type?

Then data will be lost. Quite often, at least in Java, the compiler will protest at compile time, basically forcing you to rethink your strategy.

What is ladderized if?

if (cond1) statement1

else if (cond2) statement2

...

else if (condn) statementn

else statemente;

(Note: each statement can be a {block})

Write a C program to find out whether character passes through keybroad is a digit or not?

hey..it s simple..make use of built-in function isdigit(character)..it s in stdlib.h...

Why an operation to check queue overflow is not implemented on linked queue?

In linked queue we're dynamically allocating the memory and there's no fixed memory limit in Linked Queue. That's why there's no operation for overflow.

I guess It's the correct reason

What is point of interruption?

If you mean hardware interrupts, it is a way for a device to notify the CPU when some event occured.
Without interrupts it is necessary to poll the device constantly.

What is the difference between direct and indirect recursion?

I hope these example will help you:

static int Direct (int n)

{

if (n<=0) return 0;

else return n + Direct (n-1);

}

static int InDirect (int n)

{

if (n<=0) return 0;

else return n + Buddy (n-1);

}

int Buddy (int n)

{

return InDirect (n);

}

When is operator AND true?

Here is its truth-table:

A B A and B

F F F

F T F

T F F

T T T

What is the difference between a semantic error and logic error?

An error in the logic of a program means that the output of the program is faulty (eg the program tell you 2+2=5). An error in semantics in a program means that the program statements are not constructed properly and the usual result of this is that the program will not compile.

What are the differences between structures and arrays?

Arrays are collections of repeated data items. Structures are complex data items made up of other data items, including, potentially, other structures and arrays. You can, of course, also have arrays of structures.

Array items can be accessed by using its subscript whereas structure items can be accessed using its dot or "arrow" operator in C, C++, C#, Java, and JavaScript.

How do you write a user define function of strcpy?

char* u_strcpy (char* dest, const char* src) {

char* temp = dest;

while ((*dest++ = *src++) != '\0');

return temp;

}