Home
Q&A
Education
Technology
Credit
General
Health
Insurance
Questions
Ask a Question
What is the meaning of the below declarations? 1. const int a; 2. int const a; 3. const int *a; 4. int * const a; 5. int const * a const;c
Home
Questions
What is the meaning of the below declarations? 1....
asked
Jan 21, 2021
by
JackTerrance
What is the meaning of the below declarations? 1. const int a; 2. int const a; 3. const int *a; 4. int * const a; 5. int const * a const;c
pointer-interview-questions-in-c
cprogramming
1
Answer
0
votes
answered
Jan 21, 2021
by
JackTerrance
The “a” is a constant integer.
Similar to first, “a” is a constant integer.
Here “a” is a pointer to a const integer, the value of the integer is not modifiable, but the pointer is not modifiable.
Here “a” is a const pointer to an integer, the value of the pointed integer is modifiable, but the pointer is not modifiable.
Here “a” is a const pointer to a const integer that means the value of the pointed integer and pointer both are not modifiable.
Related questions
0
votes
Q: What is difference between Indirection operator with post-increment operator?
What is difference between Indirection operator with post-increment operator?...
asked
Jan 24, 2021
by
JackTerrance
c-programming
pointer-interview-questions-in-c
cprogramming_interview_questions
cprogramming
0
votes
Q: Can we declare a variable be both constant and volatile in C?
Can we declare a variable be both constant and volatile in C?...
asked
Jan 23, 2021
by
JackTerrance
c-programming
pointer-interview-questions-in-c
0
votes
Q: Why trash rack is used?
Why trash rack is used?...
asked
Jan 28, 2021
in
Education
by
JackTerrance
pointer-interview-questions-in-c
0
votes
Q: Can we have a volatile pointer?
Can we have a volatile pointer?...
asked
Jan 23, 2021
by
JackTerrance
pointer-interview-questions-in-c
c-programming
0
votes
Q: {int ar[] = { 3, 1, 4, 6, 5 };int ar_size = sizeof(ar) / sizeof(ar[0]);isTriplet(ar, ar_size) ? cout << “Yes” : cout << “No”;return 0;
{ int ar[] = { 3, 1, 4, 6, 5 }; int ar_size = sizeof(ar) / sizeof(ar[0]); isTriplet(ar, ar_size) ? cout...
asked
Dec 9, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: {int ar[] = { 3, 1, 4, 6, 5 };int ar_size = sizeof(ar) / sizeof(ar[0]);isTriplet(ar, ar_size) ? cout << “Yes” : cout << “No”;return 0;
{ int ar[] = { 3, 1, 4, 6, 5 }; int ar_size = sizeof(ar) / sizeof(ar[0]); isTriplet(ar, ar_size) ? cout...
asked
Dec 3, 2021
in
Education
by
JackTerrance
computer-science-interview-questions
computer-science-questions
0
votes
Q: _____________ will produce a sequential vector c( (1,2,3,4,5,6,7,8,9)).
_____________ will produce a sequential vector c( (1,2,3,4,5,6,7,8,9)). (a) Seq(9) (b) Seq ... Functions and Debugging of R Programming Select the correct answer from above options...
asked
Feb 13, 2022
in
Education
by
JackTerrance
r
programming
c
0
votes
Q: Three events A, B and C have probabilities 2/5, 1/3 and 1/2, respectively. Given that P(A ∩ C) = 1/5 and P(B ∩ C) = 1/4 ,
Three events A, B and C have probabilities 2/5, 1/3 and 1/2, respectively. Given that P(A ∩ C) = 1/5 and P(B ∩ ... | B) and P(A'∩ C'). Select the correct answer from above options...
asked
Nov 20, 2021
in
Education
by
JackTerrance
probability-interview-questions
probability-interview-questions-answers
probability-multiple-choice-questions
probability-mcq-with-answers
probability-mcq
probability-questions
cbse-class-10
0
votes
Q: If P(A) = 3|10, P(B) = 2|5 and P(A ∪ B) = 3|5, then P(B|A) + P(A|B) equals A. 1/4 B. 1/3 C. 5/12 C. 7/2
If P(A) = 3|10, P(B) = 2|5 and P(A ∪ B) = 3|5, then P(B|A) + P(A|B) equals A. 1/4 B. 1/3 C. 5/12 C. 7/2 Select the correct answer from above options...
asked
Nov 20, 2021
in
Education
by
JackTerrance
probability-interview-questions
probability-interview-questions-answers
probability-multiple-choice-questions
probability-mcq-with-answers
probability-mcq
probability-questions
cbse-class-10
0
votes
Q: A and B are events such that P(A) = 0.4, P(B) = 0.3 and P(A ∪ B) = 0.5. Then P (B′ ∩ A) equals A. 2/3 B. 1/2 C. 3/10 D. 1/5
A and B are events such that P(A) = 0.4, P(B) = 0.3 and P(A ∪ B) = 0.5. Then P (B′ ∩ A) equals A. 2/3 B. 1/2 C. 3/10 D. 1/5 Select the correct answer from above options...
asked
Nov 20, 2021
in
Education
by
JackTerrance
probability-interview-questions
probability-interview-questions-answers
probability-multiple-choice-questions
probability-mcq-with-answers
probability-mcq
probability-questions
cbse-class-10
0
votes
Q: If P(B) = 3|5, P(A|B) = 1|2 and P(A ∪ B) = 4|5, then P(A ∪ B)′ + P(A′ ∪ B) = A. 1|5 B. 4|5 C. 1|2 D. 1
If P(B) = 3|5, P(A|B) = 1|2 and P(A ∪ B) = 4|5, then P(A ∪ B)′ + P(A′ ∪ B) = A. 1|5 B. 4|5 C. 1|2 D. 1 Select the correct answer from above options...
asked
Nov 20, 2021
in
Education
by
JackTerrance
probability-interview-questions
probability-interview-questions-answers
probability-multiple-choice-questions
probability-mcq-with-answers
probability-mcq
probability-questions
cbse-class-10
0
votes
Q: In a Certain Country 1/2 of 5 = 3. If the same proportion holds, what is the value of 1/3 of 10 ? A) 4 B) 6 C) 8 D) 10
In a Certain Country 1/2 of 5 = 3. If the same proportion holds, what is the value of 1/3 of 10 ? A) 4 B) 6 C) 8 D) 10...
asked
Feb 12, 2021
in
Education
by
JackTerrance
logic-puzzles-questions-answers
0
votes
Q: For a biased die the probabilities for the different faces to turn up are given below: Faces : 1 2 3 4 5 6 Probabilities : 0.10 0.32 0.21 0.15 0.05 0.
For a biased die the probabilities for the different faces to turn up are given below: Faces : 1 2 3 4 5 6 ... it is face one is : Select the correct answer from above options...
asked
Nov 13, 2021
in
Education
by
JackTerrance
artificial-intelligence-interview-questions
artificial-intelligence-interview-questions-answers
artificial-intelligence-multiple-choice-questions
artificial-intelligence-mcq-with-answers
artificial-intelligence-mcq
artificial-intelligence-questions
0
votes
Q: Arrange the words given below in a meaningful sequence. 1.Presentation 2.Recommendation 3. Arrival 4.Discussion 5.Introduction
Arrange the words given below in a meaningful sequence. 1.Presentation 2.Recommendation 3. Arrival 4.Discussion 5.Introduction A) 5, 3, 4, 1, 2 B) ... , 5, 1, 4, 2 D) 5, 3, 1, 2, 4...
asked
Feb 14, 2021
in
Education
by
JackTerrance
logic-puzzles-questions-answers
number-puzzles
0
votes
Q: Can you arrange 9 numerals - 1, 2, 3, 4, 5, 6, 7, 8 and 9 [using each numeral just once] above and below a division line, to create a fraction equaling to 1/3 [one third]?
Can you arrange 9 numerals - 1, 2, 3, 4, 5, 6, 7, 8 and 9 [using each numeral just once] above and below a division line, to create a fraction equaling to 1/3 [one third]?...
asked
Feb 13, 2021
in
Education
by
JackTerrance
logic-puzzles-questions-answers
number-puzzles
...