All India Exams
Home AptitudeBankEngineeringEnglishGKInterviewOnline TestPlacement PapersReasoning
  • Home
  • Aptitude
  • Bank
  • Engineering
  • English
  • GK
  • Interview
  • Online Test
  • Placement Papers
  • Reasoning

Pointers C Questions And Answers

Here you can find Pointers C Questions and Answers.

Why Pointers C Questions and Answers Required?

In this Pointers C Questions and Answers section you can learn and practice Pointers C Questions and Answers to improve your skills in order to face technical inerview conducted by Banks. By Practicing these interview questions, you can easily crack any Bank Exams interview.

Where can I get Pointers C Questions and Answers?

AllIndiaExams provides you lots Pointers C Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download Pointers C Questions and Answers as PDF files and eBooks.

How to solve these Pointers C Questions and Answers?

You no need to worry, we have given lots of Pointers C Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Bank Exams interview.

Pointers C Questions and Answers

1. What is the output of this C code? int main() { char *p = NULL; char *q = 0; if (p) printf(" p "); else printf("nullp"); if (q) printf("q\n"); else printf(" nullq\n"); }

Pointers C Questions and Answers

2. What is the output of this C code? int main() { int i = 10; void *p = &i; printf("%d\n", (int)*p); return 0; }

Pointers C Questions and Answers

3. What is the output of this C code? int main() { int i = 10; void *p = &i; printf("%f\n", *(float*)p); return 0; }

Pointers C Questions and Answers

4. What is the output of this C code? int *f(); int main() { int *p = f(); printf("%d\n", *p); } int *f() { int *j = (int*)malloc(sizeof(int)); *j = 10; return j; }

Pointers C Questions and Answers

5. What is the output of this C code? int *f(); int main() { int *p = f(); printf("%d\n", *p); } int *f() { int j = 10; return &j; }

Pointers C Questions and Answers

6. What is the output of this C code? int main() { int *ptr, a = 10; ptr = &a; *ptr += 1; printf("%d,%d/n", *ptr, a); }

Pointers C Questions and Answers

7. Comment on the following? const int *ptr;

Pointers C Questions and Answers

8. Which is an indirection operator among the following?

Pointers C Questions and Answers

9. Which of the following does not initialize ptr to null (assuming variable declaration of a as int a=0)?

Pointers C Questions and Answers

10. What is the output of this C code? int x = 0; void main() { int *ptr = &x; printf("%p\n", ptr); x++; printf("%p\n ", ptr); }

Home EngineeringComputer Science & EngineeringC Multiple Choice Questions & AnswersPointersDiscussion

Pointers - C Multiple Choice Questions & Answers :: Discussion

   What is the output of this C code?

int main()
{
int i = 10;
void *p = &i;
printf("%f\n", *(float*)p);
return 0;
}
 
A. Compile time error B. Undefined behaviour
C. 10 D. 0.000000

Answer & Explanation

Answer: Option D

Explanation:

None.

Workspace

Report Error


  • Workspace
  • Report
Write your comments here:

Related Topics:

  • File Access
  • Variable Names
  • C Operators
  • Declarations
  • C Functions
  • Preprocessor
  • Control Flow Statements
  • Typedef
  • Standard Input and Output
  • Structures, Unions, Bit-fields

Mock Tests & Online Quizzes

  • Aptitude Online Test

  • Reasoning Online Test

  • GK Online Test

  • English Online Test

  • RRB Mock Test

  • RBI Mock Test

  • Free SBI Mock Test

  • IBPS Mock Test FREE

  • SSC Mock Test

  • CAT Exam Mock Test

  • GATE Mock Test

  • IT Courses Quiz

Questions and Answers

  • Aptitude Questions
  • Verbal Reasoning Questions
  • Non Verbal Reasoning
  • Logical Reasoning Questions
  • Data Sufficiency Questions
  • Data Interpretation
  • eLitmus Sample Papers
  • ECE Questions and Answers
  • EEE Questions and Answers
  • Verbal Ability Questions
  • GK Questions

Programming Quiz

  • C Programming
  • C++ Programming
  • PHP Programming
  • Java Programming
  • Python Programming
  • DataScience MCQ
  • Hadoop MCQ
  • Mongo DB MCQ
  • MySQL MCQ

Interview Questions

  • Java Interview Questions
  • .Net Interview Questions
  • Networking Interview Questions
  • C Language Interview Questions
  • C++ Interview Questions
  • Testing Interview Questions
  • Android Interview Questions
  • HR Interview Questions
  • Group Discussion Topics

Mock Tests

  • CAT Mock Test
  • SSC Mock Test
  • AMCAT Mock Online Test
  • LIC Mock Test
  • IBPS Mock Test
  • RRB Mock Test
  • RBI Mock Test
  • Free SBI Mock Test
© by AllIndiaExams.in. All Rights Reserved | Copyright | Terms of Use & Privacy Policy