main()

{

char *p = "hello world";

p[0] = 'H';

printf("%s", p);

}

a. Runtime error.

b. “Hello world”

c. Compile error

d. “hello world”

Answer Posted / vijayanand yadav ("appu s

compile time error,
because of the semi colon present in the variable char *p="hello world";p[0]='H';here in this example the semi colon is just replaced with a , operator....

Is This Answer Correct ?    0 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

2857


How do you verify if the two sentences/phrases input is an anagram using predefined functions in string.h and by using arrays?

2014


Write a program to model an exploding firecracker in the xy plane using a particle system

3683


How can you relate the function with the structure? Explain with an appropriate example.

2913


Cluster head selection in Wireless Sensor Network using C programming language.

3105






Sir... please give some important coding questions asked by product companies..

1793


How to palindrom string in c language?

8816


how to test pierrot divisor

2252


Write a routine to implement the polymarker function

4373


create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00

6304


how to create a 3x3 two dimensional array that will give you the sums on the left and bottom columns

3117


What is data _null_? ,Explain with code when u need to use it in data step programming ?

2817


Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines

3023


why do you use macros? Explain a situation where you had to incorporate macros in your proc report? use a simple instream data example with code ?

2253


What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?

3704