aaaa12345
loading
It is a condensed emotional expression of the corporate policy

What Is the Difference Between (*ptr) and (ptr) in the Following C Code?

*ptr or *ptr or *( ptr1) or *(ptrn ) always gives the value which it is holding. ptr or ptr or ptr1 or ptrn always gives the address of it.#include

h> #includeint main() char *ptr "sachin tendulkar"; clrscr(); printf("%c ",*ptr); //it prints s printf("%c ",*ptr);//it also prints s,after printing, the ptr variable is pointing to the next location,it jumps 1byte because it is a char pointer. printf("%c ",*ptr);//it prints a,because in the previous statement we have incremented its address.

printf("%u ",ptr);//prints the address of the letter 's' i.e the base address. printf("%u ",ptr1);//prints the address of the letter 'a',in this we can clearly see that it jumps 1byte.

printf("%u ",ptr);//prints the base address and then only it gets incremented. printf("%u ",ptr);//previous line we have incremented the address so it will print the next address. getch(); return 0;

· Other Questions

What should I do if I am a racist?

Congrats my friend. The thought in your head that you want to be a better person means the journey has begun for you. I truly wish you success.

Coming to your question of how to change your thoughts about racism , there is no one size fits all solution but you try one or more combinations of the below points:Read the success stories of people of colorRead about how the human race evolved and how different races came into existence.Read about the black people and slavery.Try to force yourself and mingle with people of color.

It might be tough but when you get too close to someone it would become difficult for you to judge them negatively as you see the human side of them.If you believe in god then talk to some preacher or pastor or rabi or maulvi (depending upon which God you believe) about the universal love of God.These are some thoughts from my side.

And don't take it too hard on yourself

------

What is the output of the code below? Main() int *ptr (int*) malloc (sizeof(int)); *ptr4; printf ("%d", (*ptr) *ptr); Why?

The expression (*ptr) *ptr parses as (*ptr) *ptr and that expression is an error in C (and in C, for that matter) because it attempts to both read ptr (on the left of the addition) and modify ptr (with the post-increment on the right of the addition).

Executing this expression can result in any behavior at all: any output, no output, crash, whatever. Neither C nor C language specifications include expressions that modify and read the same variable without synchronization (which you dont have), Any output you may get is arbitrary garbage. Formally, this program has undefined behavior, just like a program that accesses an array out of bounds, dereferences a null pointer, or overflows a signed integer.

Modern compilers issue diagnostics which should always be treated as errors:clang (default options)main.c:7:29: warning: unsequenced modification and access to 'ptr' -Wunsequencedprintf ("%d", (*ptr) *ptr); ^gcc -Wallmain. c:7:29: warning: operation on 'ptr' may be undefined -Wsequence-point printf ("%d", (*ptr) *ptr); ^references: Order of evaluation on the C side of cppreference, or the C standard itself, 6.

5/2 in C11, C89 similar

------

How was the 2005 Charlie and the Chocolate Factory different than Willy Wonka and the Chocolate Factory?

The 1971 film is a little more about Charlie and the 2005 film is more about Wonka, so the titles are a tad ironic. The Oompa Loompas differ in appearance, the ones in the 2005 film are closer to the book, in fact the 2005 film is truer to the book, the squirrel scene for one, Charlie Bucket having both parents, the fuzzy lifting drinks scene is gone, a few little additions to the factory from the earlier film are absent in the later film, Grandpa Joe has worked for Willy Wonka, the Oompa Loompas songs are also closer to the book.

The 1971 film does show some stronger similarities to the book though, the Willy Wonka is more precise on personality, the poem during the boat ride (that does not appear in the newer film), the Violet Beauregarde punishment scene is more similar to the book. I enjoy both films, but I think if both good things about both films were combined, that would make a much truer adaptation to the original story

------

How do I learn Austrian?

First you will need to learn standard German, likely Hoch Deutsch.

After that, you will learn regional dialects. In Austria, there are several of thee, believe it or not. I lived in Vienna for four years.

The standard German I learned served me well, insofar as the Wieners were able to understand me. As far as my understanding them - well, sometimes that got to be difficult. The local dialect in Vienna is called Wienerish, and itu2019s this mishmash of German, Slavic borrowings, and even some Northern Italian thrown in for good measure.

The mishmash extends not only to vocabulary, but also to pronunciation. Platz, which I learned to pronounce as plahtz (rhymes with bots) is in Wienerish pronounced ploatz (rhymes with boats). Itu2019s a small thing, you might think.

But, for a non-native speaker/listener this sort of stuff will throw you for a loop!Additionally, the intonation of sentences is different in Wienerish. What to do?

Thereu2019s nothing for it, but to make some relationships with those fluent in the dialect you wish to speak, and then to practice conversing with them

------

If I want to become a programmer, which programming language should I know first?

Thanks for A2AGeneral consensus on this question will be to start with C and I although I believe C is the best language to start with, but I would recommend you to start with Python.I'll try to make my pointPython is quite easy to learnPython is very versatile languagePython is excellent for project work because of its versatile usagePersonally I feel that learning material for python on internet is way more organized than C or C If you start with python you'll have ample time to master it from the scratch.

Which will be very good for you. Mastering python will Having python in your bag of skills will help you a lot. Especially if you want to create many projects (I am talking about appealing/interesting projects).

You can go for C, C as well, it all depends what interests you more. You should start with C,C if you wish to do core programming in future. Hope it help

------

What is output?

Main() if (printf (u201chellou201d)) if (printf (u201chiu201d2)) printf (u201cHELLO HIu201d);?

This would output only hello. Now the question arises why?

Look at the code :#include #include int main() if (printf ("hello")) // it returns non-zero value if (printf ("hi"2)) // it returns zero printf ("HELLO HI"); One thing to understand is that printf() not only prints value but also returns the length of printed string i.

e, int. Now in line 4 it got the length of the word hello that is non-zero and in C everything non-zero is considered as true but inline 5, it got zero as here it tried to access the letter at the 2nd index. For better understanding see these photos:See when we tried accessing value at the location of 0th index (or first position) we got letter h and which has ASCII value of 104.

Similarly, when we accessed the 2nd index (or third position) we got :We got nothing or NULL and its ASCII value is 0 which is false. Therefore the program did not proceed further. I hope it helped.

------

I find it hard to read other's code an it takes me time, am I a bad programmer?

If you have trouble reading well-designed, well-commented code, then yes. If you have trouble reading a bowl of spaghetti (which a lot of code resembles), no.

Sometimes you have to unravel that spaghetti, but most of the time either you're working for a company with standards, and you'll be able to read someone else's code, or you'll convince them that the code is so badly written that it'll save time and money if you just rewrite it from scratch. (On my last job, I spent about 6 years fixing code written by the entry-level "programmer" I'd replaced. When I left, I'm sure there were still a lot of bombs left in the code.

Some of his stuff was so bad that I'd rip out half a file and write the functions my way. I was thinking of going into the wholesale pleonasm business - almost every if statement had at least 2 of them. And his SQL transactions were done without transactions.

Plenty of "oops, that failed . nothing we can do but leave that bad data in the database". "Rollback" is a magic word.

).

------

Why can't computers understand simple English language?

Because computers approach language in a logical way, and human language is not logical.

Among the first people to claim this was Locke (1690), when he said that if there were a minimum relationship between the word and the object it represents, there would be but one language amongst all men."Languages are not logical mainly for two reasons:1. The relationship between a word and reality is arbitrary.

Sure we have synesthesia and onomatopoeias, but other than those incidental associations of sound and meaning, language is mostly arbitrary.2. Languages are spoken by human beings, and as Johnson (1987) points out: We are rational animals, but we are also rational animals, meaning that we are a combination of rationality and emotionality, which is reflected through language.

Related answers:Could language be limiting advancements in quantum physics?How do you think language affects your identity, personality, and behavior?SourcesJohnson, M.

(1987). The Body in the Mind: The Bodily Basis of Meaning, Imagination, and Reason. Chicago: University Of Chicago Press.

Locke, J. (1690). An Essay Concerning Human Understanding.

London: Penguin

------

Iu2019m 15 and crippled by depression and very close to giving up on life, the idea of Hell and a bad afterlife no longer scares me. All I feel like I want to do now is end my pain here on Earth. What is Hell really like and why should I be afraid of it?

Hi BuddyLeaving aside the details of the problems u r facing, let me confess one thing that I was in the same situation. I am out of it now.One thing you need to realize is that death should be natural and it should come to us by its own.

We should not try to meet and reach death as that is incomplete and totally unnatural for any living being. This was my experience after my suicide attempt. Trust me, things were clear after that experience of mine.

I still have my challenges growing ever after that incident but I have myself and my conscience with me to address all that and live peacefully. Now, try and share ur situation with the most trusted elderly person and take counseling sessions in the nearest mental health institute.Try different cuisines of food and try cooking and feeding the needy if you can cook.

Spend more time in greenary like parks and please don't stay cornered in a room. I am sure you will rock and there is long way to go

------

What happened to the Electric Light Orchestra?

The orignal ELO largely disbanded after Balance of Power in 1986.

By then the band had winnowed down to Jeff, Bev Bevan, and Richard Tandy, following Kellyu2019s departure under a cloud. There was an attempt to reform ELO in the u201890s, when Bev wanted to make a new ELO album, but Jeff (who co-owned the trademark) objected to calling it ELO, so Bev worked out an agreement to move forward with a group calling itself Electric Light Orchestra Part II. They put out three albums, Electric Light Orchestra Part II, Moment of Truth, and a live album, before evolving into The Orchestra after Bev sold his 50 per cent of ELOu2019s IP back to Jeff.

The Orchestra, made of ELO alumni such as Louis Clark and Mik Kaminski and (eventually) Kelly Groucutt (up to his rather untimely death) along with art-rock names Eric Troyer and Parthenon Huxley, still exist today. Since ELO disbanded in 1989, Jeff released Zoom in 2001 (as Electric Light Orchestra) and Alone In The Universe (as Jeff Lynneu2019s ELO).

GET IN TOUCH WITH Us
recommended articles
wen
I had a neighbor who had dentures since she was 18. Her own teeth were so crooked and her parents could not afford braces so she had them pulled. She loved her new '...
The suspect in the Pennsylvania police barrack ambush last week was added to the FBI's 10 most wanted list Friday as the search focuses in on the wooded area in the ...
The wiring diagram of single chip microcomputer 80C51 is shown in Figure 1. In Figure 1, position 4 shows the common anode for the tube. Use dynamic display and cycl...
Principle of three-stage dimming of the lamp_How to use TRIAC to dim the LED lamp and how to design the specific scheme? - Programmer SoughtAt present, non-energy-sa...
"To talk about smart grid, Jiangning District has gathered more than 300 enterprises, led by 12 listed enterprises such as NARI Group and Guodian Nanzi, covering the...
What is your policy on bath toys?We only have as many bath toys as can fit in one regular-sized mesh bag on the shower wall. I do not want them taking over the bathr...
Well graphic cards are not cheap, but you will always get ripped by people taking a look at your computer, there's no way around that unless you fix it yourself or h...
No it would not , as a pure black light bulb will not allow the light to come out, and it means it is same when it is on or off. So neither it makes the room lighter...
How to Repair Rain GuttersThis post may contain affiliate links. For more information see our disclosures here . Expert advice on downspout and gutter repairs. Stop ...
(source: Robert Institute of robotics, China)Yaskawa motoman-gp7 is a 6-axis vertical multi joint robot. Because of its combination with the small robot controller "...
no data
ADDRESS
Manhatthan
NY 1234 USA
master@weyes.cn
LINKS
Home
Services
Portfolio
Career
Contact us
PRODUCT
Chandelier
Wall Lamp
Table Lamp
Floor Lamp
Contact Us
+86 020-22139352
If you have a question, please contact at contact service@lifisher.com
Copyright © 2025 | Sitemap
Contact us
whatsapp
phone
email
Contact customer service
Contact us
whatsapp
phone
email
cancel
Customer service
detect