Describe three xeromorphic adaptations of plants A B C?
The 3 xeromorphic adaptations of plants include reduced surface area, reflectivity, and reduced air flow to minimize evaporation rate.
Which command would you use to run a Fortran code?
Fortran is a programming language, which means you write a program in Fortran, and COMPILE it to an EXECUTABLE program. The compiler you use differs depending on which operating system platform you intend to run the program on. If you wish to run the program on a PC using Windows XP, you must first compile it using a specific Fortran-compiler for Windows XP. The result after compiling will be an executable file (with the file-ending .exe). To find a suitable compiler, check out download.com, for instance.
Given that you know it is Fortran Code, we can assume that you do not have a compiled one, but just raw Frotran Source code.
To compile it, you need a Fortan compiler suitable for both your operating system as well as the version of Fortran the code was written for.
There is a free Fortran Compiler for Fortran77 from the GNU Project:
For Windows: http://www.geocities.com/Athens/Olympus/5564/
For Unix: http://www.gnu.org/software/fortran/fortran.HTML
The above is correct assuming your question is "Given the Fortran source code, how do I run it?" However if your question is "Given the Fortran executable (ProgName.exe) how do I run it?", the is that you run it like any other program. You either: 1 - Double-click on the file name OR 2 - Open a DOS window, go to the directory where the file is and type in the filename with or without the extension .exe OR 3 - You can select Start and Run and type in the filename.
Like any "compilable" language it can be used to build an exe or a dll. But a dll MUST be called by another program to run, you can only run a .exe directly.
------------------
In addition the workflow for running a Fortran program on a *nix platform (such as Unix, Linux, or Mac OSx) would be as such:
1) Write given Fortran code with proper extension
a) Fortran 77 - *.fb) Fortran 90 - *.f90c) Fortran 95 - *.f95
2) Compile using your compiler suite (showing examples for a few different cases)
a) for gfortran as mentioned abovegfortran myfile.f90 -o myExecutableg77 myfile.f77 -o myExecutableb) for OpenMPImpif90 myfile.f90 -o myExecutablempif77 myfile.f77 -o myExecutablec) for Intel Fortranifort myfile.f90 -o myExecutable
3) To run the executable first make sure it is marked as executable, this can by going to the folder in which it was compiled then typing:
ls -l
You will then see the myExecutable file marked with permissions. Check to see if the executable permission is there. If it is not, you must change permissions to allow it to be executed. This is done by typing:
chmod a+x myExecutable
4) Finally to actually run the code you simple add the execution prefix:
./myExecutable
This will cause the file to run with output in the current terminal session. Note that if you terminate the terminal/ssh session, the code execution will halt. If you want to execute a large piece of code on lets say a remote computer (or a cluster for scientific computing) then you do the following step instead of 4
4*) To run the executable in backround and log terminal output (if you don't want to keep the terminal window open) you use the following command:
nohup ./myExecutable > terminalOuput.txt &
This will cause the executable to run in the background, it will the tell terminal not to hang up (nohup) if you close the window, and it will append the terminal output to the file terminalOutput.txt
Is PEA a defined or undefined medium?
Leboffe & Pierce in their text "Microbiology Laboratory Theory and Application" (second edition) state on page 111 that PEA is an undefined medium
So for as i know, it depends on the first argument which represents the number of arguments. If argc is 2 bytes in length, 65535 strings can be passed. If argc is 4 bytes in length, 4294967295 strings can be passed. In Both the cases first one is for program name. And the total length should not exceed the heap size.
S.Sunil kumar,MCA(2008-2011) from CEG, Anna University
Answer: OS dependent, for example in DOS only 127
Can you delete the head node from doubly linked list?
If by 'head node' you simply mean the first node, then yes; but if 'head node' means the special element which is not supposed to ever be deleted (aka sentinel node), then no.
If a is less than b and b is less than c what is less than c?
You already said the answer that b is less than c
What are the advantages of using Unions?
unions conserves memory space..The amount of space allocated for union is based on the member which requires largest memory space...so unions are useful for applications involving number of variables,where values need not be assigned to all elements at one time.
AnswerIts used to save on space.For eg. you have a struct for storing information about insurance policy holders. But there are three types of insurances: Home, Life, Auto. Now basic details about policyholders such as name, address, etc is the same no matter what insurance you are talking about. But certain details are different. So by making a union policyinfo in this struct which is a diff internal struct for each of these policies you can save on space. When you are entering info about a Home policy, then you use the common fields AND only the struct for home insurance. You do not even fill/care about the other structs in the union. Upon storage only the Home struct will be stored, and the others will be discarded. Keep a variable in the main struct which indicates the type of insurance policy and so, which of the structs in the union you want to use. This way, you have just one big structure for all policyholders, instead of three -- it provides a common interface and saves on storage.
===============
The above answers are not correct. Unions do not save memory or storage space. Unions allow the same area of memory to be accessed as different data types. The insurance example above would not work.
<><><>
Unions are useful (often in embedded programming) when it is needed to refer to a data item as two or more different types: e.g. it may be used as an integer for math, but an array of bytes for a serial transmission or a checksum calculation.
For memory preservation, since the space allocated for the union is as big as its biggest member.
What is the explanation for the concept of dynamic linking?
Dynamic linking is accomplished by placing the name of a sharable library in the executable image. Actual linking with the library routines does not occur until the image is run, when both the executable and the library are placed in memory. An advantage of dynamic linking is that multiple programs can share a single copy of the library.
What is the main purpose of the Right To Play program?
The Right to Play program is a very well known humanitarian organization. The Right to Play program uses sports for young adults to help improve their health.
Is that any other way to input data in c language other than scanf function?
read, fread, gets, fgets, getc, fgetc, getchar, getch
Can a DateTime variable be null?
hi i can say that datetime cant be null because datetime is valuetyp(struct) its not referece type(object)
What are the languages from which C was evolved?
C got its name because it was a successor to the B programming language (to which it is very similar). The various iterations of ALGOL also had an influence on C.
Program in c to find speed when distance and time are accepted at run time?
#include<stdio.h>
@include<conio.h>
void main()
{
float s,p,d;
printf("enter distance and time");
scanf("%f",&d,&t);
s=d/t;
printf("result=%f",&s);
getch();
}
The position of Proof Operator I is responsible for operating proof machines to encode checks and over the counter items; assists in capture of balanced work and preparation of outgoing cash letters; performs routine clerical duties as directed.
guys ..... instead of using actual pointer arguments i have used parameters ...
this will give you a far better idea of using pointers ........and i have used setbuf function because i am using emacs , it buffers output !!...... just enjoy
#include<stdio.h>
#include<string.h>
void main()
{
char ch,str[25],del[25];
char *p,*q,*r;
int i;
setbuf(stdout,NULL);
printf("\nenter the string:-\n");
gets(str);
setbuf(stdout,NULL);
printf("\nenter the character:-\n");
gets(&ch);
p=str;
r=del;
q=&ch;
delete(p,q,r);
printf("\nthe string with the deleted characters is:-\n%s",del);
}
delete(char *p,char *q,char *r)
{
while(*p!='\0')
{
if(*p!=*q)
{
*r=*p;
r++;
p++;
}
else
{
p++;
continue;
}
}
*r='\0';
}
Are c programes required to be typed in lowercase?
It's not a requirement, but it is highly recommended. All C keywords are in lowercase as are all standard library names and types. Uppercase names are conventionally used to denote macros since a macro is not C code (macro expansion is handled by the preprocessor so the compiler never sees them). User-defined types are conventionally given a leading capital to differentiate them from the standard library types. Programmers are free to adopt their own style of coding, however sticking to the established conventions and best practices is good etiquette.
What is the meaning of Master-slave communication protocol?
A master-slave communication protocol allows hardware components to communicate between them.
A component is either a master or a slave.
A master initiates the communication and sends requests.
A slave only receives the requests, acknoledges, threats and sends a response. A slave cannot initiates a communication.
What is the difference between array linklist?
Linked list consists of data nodes each pointing to next in the list .An array consist of contiguous chunk memory of predetermined size
What is the process of assigning a value to a variable called?
That is called "assignment".
That is called "assignment".
That is called "assignment".
That is called "assignment".
Write a program to sort two numbers using pointers?
This program works only on Microsoft compiler, people who are using another compilers will have to modify pointer initialization to
double vfirstNumber = 0.0;
double* firstNumber = &vfirstVariable;
...
double vsecondNumber = 0.0;
double* secondNumber = &vsecondNumber;
Or whatever you find is better.
#include <iostream>
using std::cin;
using std::cout;
using std::endl;
int main()
{
double* firstNumber = NULL;
cout << endl << "Enter first number: ";
cin >> *firstNumber;
double* secondNumber = NULL;
cout << endl << "Enter second number: ";
cin >> *secondNumber;
if (*firstNumber > *secondNumber)
{
cout << endl << *firstNumber << " > " << *secondNumber << endl;
}
else if (*firstNumber < *secondNumber)
{
cout << endl << *firstNumber << " < " << *secondNumber << endl;
}
else
{
cout << endl << *firstNumber << " = " << *secondNumber << endl;
}
system("PAUSE");
return 0;
}
Is the comment ignored by the compiler?
Usually, it is (there are special cases (not in C though), when compiler hints look like comments).
What are the applications of linked list?
1.Sparse matrix representation 2. polynomial manipulation 3.dyanamic memory storage 4.in symbol table