C Programming - Pointers
Exercise : Pointers - Point Out Correct Statements
- Pointers - General Questions
- Pointers - Find Output of Program
- Pointers - Point Out Errors
- Pointers - Point Out Correct Statements
- Pointers - True / False Questions
- Pointers - Yes / No Questions
1.
Which of the following statements correctly declare a function that receives a pointer to pointer to a pointer to a float and returns a pointer to a pointer to a pointer to a pointer to a float?
2.
Which of the statements is correct about the program?
#include<stdio.h>
int main()
{
int i=10;
int *j=&i;
return 0;
}
3.
Which of the statements is correct about the program?
#include<stdio.h>
int main()
{
float a=3.14;
char *j;
j = (char*)&a;
printf("%d\n", *j);
return 0;
}
4.
In the following program add a statement in the function fun() such that address of a gets stored in j?
#include<stdio.h>
int main()
{
int *j;
void fun(int**);
fun(&j);
return 0;
}
void fun(int **k)
{
int a=10;
/* Add a statement here */
}
5.
Which of the following statements correct about k used in the below statement?
char ****k;
char ****k;
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers