In what way can you benefit from the study of philosophy?
Philosophy is a treasure of rich creativity with informal and formal ideas. Studying philosophy is a complete wisdom itself, that is used practically in our daily lives.
strxfrm()
How do you call string function using pointers in main program?
An array name is a pointer, so using arrays as pointers in function calls is implicit. An example is...
char a[] = "This is the source";
char b[sizeof(a)];
strcpy (b, a);
This is exactly the same1 as saying...
char a[] = "This is the source";
char b[sizeof(a)];
strcpy (&b[0], &a[0]);
... or ...
char* ap = "This is the source";
char* bp = malloc(strlen (ap)+1);
if (bp == NULL) { ... handle memory exception ... }
strcpy (bp, ap);
---------------------------------------------------------------------------------------------
1However, while a and ap have the same value in these examples, they are not really the same. You can assign a new value to ap, but not to a, because a is an r-value that is not allocated a place in memory, as opposed to ap, which is a l-value. To reinforce this, both *ap and a[0] are l-values, meaning the same thing, but not quite so for ap and a. Be careful - they both have the same value, but ap is an assignable l-value, while a is a un-assignable r-value.
What is the BCD numbers from 0 to 20?
00h, 01h, 02h, 03h, 04h, 05h, 06h, 07h, 08h, 09h,
10h, 11h, 12h, 13h, 14h, 15h, 16h, 17h, 18h, 19h
20h
if you are talking about gh3 slash he is a famous guitar player that was in Guns N" Roses. and velvet revolver hard rock and slash's snake pit
Or: Slang word for homosexual stories.
Or: Ascii 47
Wright The numbers from 1 to 10 in descending order using loop?
int i;
for (i=10; printf ("%d\n", i); i--);
What is comment in c programming?
COMMENT:- comment a re not necessary in the program. however, to understand the flow of programs the programmer can include comments in the program. comment are to be inserted by the programmer. It is useful for documentation.
Comment are nothing but some kind of statements which are placed between the delimiters /* & */. The compiler does not execute comments. Thus, we can say that comments are not the part of executable program.
The user can frequently use any number of comments that can be placed any where in the program. Please note that the comments and statements can be nested. The user should select the OPTION MENU of the editor and select the COMPILER - SOURCE -NESTED COMMENTS ON/OFF). The Comments can be inserted with a single statement or in nested statement.
Types of comment in c/c++. is following bellow
1. // this is a single line comment
2. /* */ this sing is multi line OR nested line comments
eg. /* int i=90;
char ch=65; */ close multi line comments
made by [ARUN KUMAR RAI]
A Null Character, is a control character with a value of zero.
How can you sort the following using a C for loop 5 54 543 5432 54321?
#include<stdio.h>
#include<conio.h>
void main()
{
int i, j,n;
printf("Enter The Number:- ");
scanf("%d",&n);
for(i=n;i>=1;i--)
{
for(j=n;j>=i;j--)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
What are the real time applications of linked lists?
For understanding basic concept train would be the best example for linked lists for example adding and deleting nodes is how we add and remove compartments in a train
Real time application where linked list is really used is maintaining relational databases.
in database tables may be associated with each other so for linking it to each other linked list data structure is the best choice
Where the printf statements are stored in memory?
Try this:
#include <stdio.h>
int main (void)
{
printf ("printf is at location %p\n", (void *)printf);
printf ("main is at location %p\n", (void *)main);
return 0;
}
What are the two parts of class specification in c plus plus programming?
There are more than two, but the class name and interface would be the minimum specification for any class. The interface can be further divided into public, protected and private access, each of which may contain member methods and/or member variables, which may themselves be static and/or non-static. The last part of the specification are the friend declarations, if required.
What are the signs in flow charts?
System flowcharts are the ideal diagrams for visually representing processes. System flow chart symbols include, terminator (it is oval in shape and indicates either start or end of a process, and normally contain the word 'start ' or 'End '), process (represented by rectangle), arrow (used to show the flow of control in a process), connector (circular in shape), data (input/output) (represented by a parallelogram), Decision (Diamond shaped), Junction (represented by a black bob), Concurrency (used whenever two or more control flows must run simultaneously),and subroutine(represented as a rectangle with a double-struck vertical edge).
How composite structures fittnig in airplane?
Assemblies made of composites are typically installed by fasteners. Composite structures are made of glass fibers or carbon fibers that have glue that bonds it together in an oven. During manufacture of the composite structure, a metal strip or a rib or a bushing will be attached to it that will allow it to be mated to the airplane or other structure. For example: take a complex helicopter rotor blade. These are usually made by winding long fibers along the length of the blade to form the main spar. Then more fibers are wound around this in a spiral trace from one end to the other. Over this a skin is added and a leading edge shield is attached. At the root of the blade, the first fibers that are laid down are usually wrapped around a bushing that becomes the bolt hole for attaching it to the main rotor hub. The tip of the blade is trimmed off and sometimes a tip cap is added.
A PA is a Physician Assistant, the C means that a national certification exam was taken and passed. An NP is a Nurse Practitioner.
import java.util.Arrays;
import java.util.Scanner;
public class Answers {
public static void main(String[] args) {
//Creates a scanner object named console.
Scanner console = new Scanner(System.in);
//Variabels
int [] numbers = new int [10];
double avg = 0.0;
double median = 0.0;
int max = numbers[0];
double count = 0.0;
//User input.
for (int i = 0; i < numbers.length; i++){
System.out.print("Number: ");
numbers[i] = console.nextInt();
}
//break
System.out.println("===============");
//finds the average and max value.
for (int i = 0; i < numbers.length; i++){
count += numbers[i];
avg = count / numbers.length; //average
if (numbers[i] > max){ //finds the max value.
max = numbers[i];
}
}
median = (numbers[4] + numbers[5])/2; //Median value
//Display to user.
System.out.println("Highest value found: " + max); //Show maximum value found in array
System.out.printf("Median is: %.3f \n",median); //Show median
System.out.printf("Average is: %.3f \n",avg); //Show average
sortAsc(numbers); //Print out whole array ascending
}
//Method for sorting an Array ascending.
public static void sortAsc(int [] array){
for (int i = 0; i < array.length; i++){
Arrays.sort(array);
System.out.println(array[i]);
}
}
}
This should do everything you asked for, hope this helps!