Vrundesha Joshi has Published 345 Articles

How can we return multiple values from a function in C/C++?

Vrundesha Joshi

Vrundesha Joshi

Updated on 04-Oct-2023 21:21:06

24K+ Views

In C or C++, we cannot return multiple values from a function directly. In this section, we will see how to use some trick to return more than one value from a function. We can return more than one values from a function by using the method called “call by ... Read More

How to draw an SVG file on an HTML5 canvas?

Vrundesha Joshi

Vrundesha Joshi

Updated on 16-Dec-2021 10:23:29

8K+ Views

To draw SVG onto canvas, you need to use SVG image. Firstly, use the element which contains the HTML. After that, you need to draw the SVG image into the canvas.ExampleYou can try the following code to draw an SVG file on an HTML canvas       ... Read More

Intel 8212 in mode 1

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jun-2020 05:19:09

219 Views

The figure below shows the working of 8212 in mode 1Fig: Working of 8212 in mode 1We use this mode generally when we want 8212 to function as an output port. Here, microprocessor drives DI7-0, and the device at the output receives the information on Do7-0. The clock to the ... Read More

How to create a left-arrow button on a Toolbar on iPhone/iPad?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jun-2020 05:16:57

120 Views

To create a button on toolbar we'll need to use two different components of iOS and another image that is a back arrow. Before that let's see what those components areToolbar − Toolbar is a native iOS component that is used to display items or toolbar on the bottom of ... Read More

How to replace a character in Objective-C String for iPhone SDK?

Vrundesha Joshi

Vrundesha Joshi

Updated on 29-Jun-2020 14:06:41

671 Views

To replace a character in objective C we will have to use the inbuilt function of Objective C string library, which replaces occurrence of a string with some other string that we want to replace it with.To create a string in objective C we need to write −NSString *str = ... Read More

How to navigate from one view controller to another in iOS?

Vrundesha Joshi

Vrundesha Joshi

Updated on 29-Jun-2020 14:02:43

5K+ Views

To navigate from one view Controller to another view Controller in iOS, we need to use Navigation controller. Navigation controller manages a stack of View controller when we go from one view to another view.Navigation from one view controller to another view controller can be done like mentioned below.Step 1 ... Read More

How to use Bold & Non-Bold Text In A Single UILabel in iOS/iPhone?

Vrundesha Joshi

Vrundesha Joshi

Updated on 29-Jun-2020 13:59:33

3K+ Views

To use a Bold and a regular/Non-Bold text in a single UILabel, we can either use a storyboard editor to achieve the same, or we can do it programmatically. Let’s see both of them.Method One − Editing with StoryboardSelect the label you want to edit, go to it’s attribute inspector.From ... Read More

Working of the 8257 DMA controller

Vrundesha Joshi

Vrundesha Joshi

Updated on 29-Jun-2020 12:56:38

861 Views

Initially the processor programs 8257. Here the processor behaves as the master and 8257 here works in the slave mode. The channel of the program is obtained by writing to the Address Register from the starting address of memory for transferring Data, and writing to the Counter Register where the ... Read More

Can we use LIKE and OR together in MySql?

Vrundesha Joshi

Vrundesha Joshi

Updated on 29-Jun-2020 11:17:03

16K+ Views

You can use LIKE with OR operator which works same as IN operator.Let us see the syntax for both the cases −Case 1 − Using Like with OR operator.select *from yourTableName where yourColumnName Like ‘Value1’ or yourColumnName Like ‘Value2’ or yourColumnName Like ‘Value3’ . . . NCase 2 − Using ... Read More

int(5) vs. int(10) in MySQL?

Vrundesha Joshi

Vrundesha Joshi

Updated on 29-Jun-2020 09:11:10

1K+ Views

The value in the parentheses is used to display only the width and sets the zerofill. The width is 5 for int(5), whereas 10 for int(10). Let us see another example with a different width value set for int.Let us first create a table. Here, we have set the int ... Read More

1 2 3 4 5 ... 35 Next
Advertisements