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

What is the coding to find the rightmost digit?

#include
void main()
{
long int n;
clrscr();
printf("Enter a number:");
scanf("%ld",&n);
printf("%d",n%10);
getch();
}

What is the value of separating interface from implementation in object oriented programming?

Say for example you had the following files:

  • interface.h
  • interface.c
  • interface_user.c
The code in interface.c can be altered in any way you want without having to change interface_user.c, as long as it complies with the specification in interface.h.

What do preoperative instructions include?

information about reserving blood products for surgery.taking or discontinuing medications before the surgery.eating and drinking before surgery.limiting activities before surgery.preparing items to bring to the hospital the day of surgery.

How can you display a circle on computer screen with the help of c plus plus programming language?

You cannot. At least not with generic C++. Graphics are platform-dependent and therefore requires a suitable API and library for your specific platform and its hardware.

How many while statements are possible in do..while loop?

If you are asking how many statements can be a in while loop, there is no maximum. However, from a practical perspective you need to limit the number of statements to a small number to keep the logic understandable.

How do you get original cursor in turbo c?

In turbo c command prompt select "options" in that click on "environment" and next click on "editor" next select " Insertmode" and press"ok" .After that u will get a original cursor

hi this is padma priya if you get any doubts related to c language you can send mail to padma6959@gmail.com

What is a certified statement?

A certified statement is any type of document that has been prepared and has already been signed off on by an accountant or whoever is in charge. This could be signed by a business owner, your boss, or the manager.

What is it called when compression data some of the data is lost yet can represent the original close enough?

When compressed data that is subsequently decompressed does not exactly match the original, yet it is considered close enough to the original to be usable, that algorithm is called a lossy compression.

Contrast that with lossless compression, where the decompressed version exactly matches the original. Lossy compression is useful in audio and video, where exactness is not critical, while lossless compression is useful in data streams that must be preserved exactly. The lossy compression algorithm often results in more compact compressed results.

Write a program in java to get String contents of a string?

import java.io.*;

class StringContents

{

protected static void main()throws IOException

{

BufferedReader in=new BufferedReader(new InputStreamReader(System.in));

System.out.print("Enter the String: ");

String st=in.readLine();

short u=0,l=0,sp=0;

for(short i=0;i<st.length();i++)

{

char ch=st.charAt(i);

if(ch>=65&&ch<91)

u++;

else if(ch>=97&&ch<123)

l++;

else if(ch==' ')

continue;

else

sp++;

}

System.out.println("No. of lower case characters: "+l);

System.out.println("No. of upper case characters: "+u);

System.out.print("No. of special characters: "+sp);

}}

What is Jagged Array in C?

A Jagged array is an array of arrays.

You can initialize a jagged array as −

int[][] scores = new int[2][]{new int[]{92,93,94},new int[]{85,66,87,88}};

Where, scores is an array of two arrays of integers - scores[0] is an array of 3 integers and scores[1] is an array of 4 integers.

What does the while function do in clojure?

Repeatedly executes body while test expression is true.

Variable declarations are made in what section of a program?

Variable declarations are made within the scope in which they are used and, preferably, at the precise point they are used, not before.

Can you call predefined function recursively?

Guess you meant: can a recursive function call predefined functions? Answer: sure, why not.

In traverse city there is a complex called the village of grand traverse commons this complex used to be something else what did it used to be?

An exerpt from http://www.thevillagetc.com : "...The Village (at Grand Traverse Commons) is the unique renovation of dozens of historic buildings formerly known as the Traverse City State Hospital, and previously, the Northern Michigan Asylum."

What is loop in a transportation problem?

Mathematically if we have to define LOOP It is an ordered set of at least four cells in a transportation table form.

How to Write a program using while loop to find the sum of integers 73 through 415 inclusive?

#include

using std::cin;
using std::cout;
using std::endl;

int main()
{
int number1 = 73;
int number2 = 415;
int sum = 0;

for (int i = number1; i <= number2; i++)
{
sum += i;
}

cout << endl << "Sum from 73 to 415 is: " << sum
<< endl;

system("PAUSE");
return 0;
}

How do you access global variable from within the main function when the local variable is of the same name?

When you acess a global variable inside main function you must use the same name, because the variable declared as global can be accessed by any function/procedure on the class where it was defined.

What are 4 string handling function?

strlen(s1) to find the length of the string s1

strcpy(s1,s2) copy source string to destination string(i.e copies s2 to s1,s2 remain unchanged)

strcmp(s1,s2) compares s1 and s2 and prints 0 if s1 and s2 are equal,-1 if s2 is greater, 1 if s1 is greater

strcat(s1,s2) combines string s1 and s2 to a single word and stores it in s1

strupr() converts lower case string to upper case

strlwr() converts upper case string to lower case

What is memory pooling?

Memory pools, also called Memory_allocation, allow Dynamic_memory_allocationcomparable to Mallocor http://wiki.answers.com/wiki/C++'shttp://wiki.answers.com/wiki/New_(C++). As those implementations suffer from Fragmentation_(computer) because of variable block sizes, it can be impossible to use them in a Real-time_computingdue to performance. A more efficient solution is preallocating a number of memory blocks with the same size called the memory pool. The application can allocate, access, and free blocks represented by Handle_(computing) at Run_time_(computing).

Many RTOSuse memory pools, such as the Transaction_Processing_Facility.

Some systems, like the Apache_web_server, use the term memory pool to refer to a group of variable-size allocations which can be later deallocated all at once. This is also known as a region; see Region-based_memory_management.

Pointer version of string function strcpy?

char* strcpy(const char* src, char* dst) { char* tmp = dst; while ((*dst++ = *src++) != '\0'); return tmp; }