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

-Write the syntax of the c while and do while statements using EBNF Assume the following nonterminals are already defined statement and expr?

The hash tag used before the name is mainly for Twitter. These tags, however, can also be used on Facebook and other social media networks. The tags basically link followers and friends of the message to a central site where they can post pictures, thoughts, and discussions. In this instance, the hash tag is asking a question that should receive timely responses from friends and followers.

What do you do when you receive the command 'Write C code to read input from user and save the input to a sequential file'?

Learn C! :-)

There are several functions in C that can be used to read input from the user, such as getc(), getchar(), and scanf(). Files can be written to using fprintf() and putc(). They can be opened with fopen() and closed with fclose().

C program for sorting the numbers?

C program for sorting the numbers is very basic, start writing it and if you are having problems, post your program here and a description of the problem and you will be helped.

If you are taking a computer course, how do you expect to pass exams if you have plagiarized someone else work for your assignments.

To print the name without using semicolon?

#include <stdio.h>

int main (void) { puts ("the name"); return 0; }

How many bytes are used to store a 64-bit number?

how many bytes are there in a 64-bit machine?

Another Answer:

It takes 8 bytes to store a 64 bit number.

Turbo c program that will determine if the input is odd or even number?

#include <stdio.h>

int main()

{

printf("Program to find ODD or Even Number\n");

while(1)

{

int n = 0;

printf("\nEnter a number(-1 for Exit): ");

scanf("%d",&n);

if( n 0)

{

printf("%d is a EVEN number.\n", n);

}

else

{

printf("%d is a ODD number.\n", n);

}

}

return 0;

}

What is flowchart of stack using array in c prog?

Two little problems:

1. stack doesn't have a flow-chart

2. there are no flow-charts in a C program

What is the built in function to draw lines in Visual C plus plus?

C++ has no built-in function to draw lines, nor indeed to perform any type of graphics output. The standard library is designed to be as generic as possible, and is therefore capable of supporting all platforms using text output only. Graphics output is obviously possible, but it is platform-specific so you will need a graphics API that provides functions that are specific to your operating system and/or hardware.

What is a interpretive statement?

An interpretive statement is basically a claim that you have written that connects to the central idea of yo stupid essay

In pointers to store float address is we can use integer variable?

You can't address memory with floating point values. All pointers are integer values pointing to a location in memory, regardless of what type it is pointing to. If you wanted a floating point pointer, then the following should do the trick:

float *floatingPointer;

Note: If you wanted to ask that which integer type is big enough to hold a (flat) pointer, then the answer: ptrdiff_t, intptr_t (both signed) and size_t, uintptr_t (both unsigned).

How do you declare an N-Dimensional array using Malloc?

#include <stdlib.h>

int **array1 = malloc(nrows * sizeof(int *));

for(i = 0; i < nrows; i++)

array1[i] = malloc(ncolumns * sizeof(int));

How do you draw a perfect circle?

Get a cup or bottle somethig round orrr... you can stick a hole in the middle with a thumbtack in it with string on the thubtack conected to the pen (or pencil) and go around:)

How records are logically deleted from files?

You might define a boolean field in the record meaning 'this record is logically deleted: yes/no'.