What is the output of C program?
void main(){
int b = 25;
//b memory location = 1234;
int *p;
p=&b;
printf("%d %d", &b, p);
}
Ans: a
Which statement/s is/are true to open a binary file "Record.dat" for reading and writing?
Ans: a
What is the output of this statement "printf("%d", (a++))" in C programming?
Ans: c
Which of the following is true about FILE *fpt ?
Ans: d
What is the correct syntax to declare a structure in C?
Ans: d
which operator is used to get the address of a variable?
Ans: b
What will be the output of the program code?
Void main() {
char str1[20]="Hello",
str[20]="world";
strcat(str1,str2);
puts(str1);
}
Ans: c
What is the correct way to open a file named "data.txt" in C for reading?
Ans: a