#include<stdio.h>
void main()
{
char *str;
long unsigned int add;
str="Hello C";
add=&str[0];
printf("%c",add);
}
What is the output?

Answer Posted / manish122

Error:- Non Portable Pointer Conversion.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is null in c?

601


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2161


What is "Duff's Device"?

703


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

1984


Write a program to use switch statement.

662






How to compare array with pointer in c?

625


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

660


What is a buffer in c?

576


What does the message "automatic aggregate intialization is an ansi feature" mean?

695


What is difference between structure and union?

603


What is main () in c language?

599


to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?

1574


What are the advantages of using Unions?

642


What is the difference between scanf and fscanf?

665


Why do we use header files in c?

585