Answer:
Answered below
Explanation:
Data values in a program are held in variables. Variables are like containers for holding different types of data. A variable can be identified depending on the kind of data it holds. Variables can hold data types of integers, strings, arrays, lists, sets, Boolean etc. They hold unique data types and a can not hold different data types. Different rules exist for naming variables in different programming languages. A variable name should start with lowercase letters and be descriptive of the data it holds.
Question:
"The correct syntax for passing an array as an argument to a method when a method is called and an array is passed to it is: "
A) a[0]..a[a.length]
B) a()
C) a
D) a[]
Answer:
The correct answer is A.
An example is given in the attachment.
Cheers!
Answer:
see explaination
Explanation:
#include <iostream>
#include <fstream>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main(int agrc,char*argv[])
{
struct stat sb;
if(agrc != 2){
cout << "invalind command line arguments "<< endl;
return 0;
}
if (stat(argv[1], &sb) == -1) {
perror("stat");
exit(EXIT_FAILURE);
}
if((sb.st_mode & 777) != 0) {
cout<<"file has permission and its invalid"<<endl;
}
//chmod(argv[1], S_IRWXU);
int status = chmod(argv[1], 0200);
if(status){
cout<<"permission sucessfull change"<<endl;
}
ofstream myfile;
myfile.open (argv[1], ios::out | ios::app);
myfile<<argv[2]<<endl;
status = chmod(argv[1], 0000);
if(status){
cout<<"permission sucessfull change
0000"<<endl;
}
myfile.close();
cout << "thank you" << endl;
return 0;
The answer is ASP. ASP is also an abbreviation for Active Server Page. An Application Service Provider (ASP) is a company that offers individuals or enterprises access over the Internet to applications and related services that would otherwise have to be located in their own personal or enterprise computers.
If you mean "splitting" a single drive into several partitions, you are talking about a term called Partitioning.