Interviewer And Interviewee Guide

Data Structure Arrays Interview Question:

What will be output if you will execute following c code?
#include<stdio.h>
void main(){
int array[2][3]={5,10,15,20,25,30};
int (*ptr)[2][3]=&array;
printf("%dt",***ptr);
printf("%dt",***(ptr+1));
printf("%dt",**(*ptr+1));
printf("%dt",*(*(*ptr+1)+2));

Submitted by: Muhammad
5 Garbage value 20 30
Submitted by: Muhammad

Read Online Data Structure Arrays Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.